types: Refactor EventAttribute (#6408)

This commit is contained in:
Aleksandr Bezobchuk
2021-04-30 09:27:51 -04:00
committed by GitHub
parent 1ec959f8a1
commit 09a6ad7b1e
14 changed files with 134 additions and 148 deletions
+4 -4
View File
@@ -111,12 +111,12 @@ func (app *Application) EndBlock(req abci.RequestEndBlock) abci.ResponseEndBlock
Type: "val_updates",
Attributes: []abci.EventAttribute{
{
Key: []byte("size"),
Value: []byte(strconv.Itoa(valUpdates.Len())),
Key: "size",
Value: strconv.Itoa(valUpdates.Len()),
},
{
Key: []byte("height"),
Value: []byte(strconv.Itoa(int(req.Height))),
Key: "height",
Value: strconv.Itoa(int(req.Height)),
},
},
},