From 7bc6ee157d787db22145df13f8ac501789903ee0 Mon Sep 17 00:00:00 2001 From: Adam Tucker Date: Mon, 17 Jun 2024 17:34:03 -0600 Subject: [PATCH] fix --- baseapp/abci.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" } } }