Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Jun 17, 2024
1 parent 1ac9925 commit 7bc6ee1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Expand Down

0 comments on commit 7bc6ee1

Please sign in to comment.