diff --git a/baseapp/abci.go b/baseapp/abci.go index b5c44f1a7645..a8a806a7c6f0 100644 --- a/baseapp/abci.go +++ b/baseapp/abci.go @@ -415,11 +415,11 @@ func (app *BaseApp) DeliverTx(req abci.RequestDeliverTx) (res abci.ResponseDeliv fmt.Println("DeliverTx") if sdk.MaxEventSize > 0 { fmt.Println("sdk.MaxEventSize > 0", sdk.MaxEventSize) - for _, event := range result.Events { - for _, attr := range event.Attributes { + for i, event := range result.Events { + for j, attr := range event.Attributes { fmt.Println("lengths", len([]byte(attr.Key)), len([]byte(attr.Value))) if len([]byte(attr.Key))+len([]byte(attr.Value)) > sdk.MaxEventSize { - attr.Value = "evt val too large, inc max-event-size in config.toml" + result.Events[i].Attributes[j].Value = "evt val too large, inc max-event-size in config.toml" } } }