laconicd-deprecated/x/evm/keeper/abci_test.go
Vladislav Varadinov 20c82d0f85
fix: revert changes from TypedEvents (#1600)
* fix: revert changes from TypedEvents

* fix: formatter and linter

* fix: double quote to prevent globbing and word splitting

* fix: added token to codecov

* fix: re-added events.proto for usage later
2023-01-11 17:11:21 +02:00

19 lines
560 B
Go

package keeper_test
import (
evmtypes "github.com/evmos/ethermint/x/evm/types"
"github.com/tendermint/tendermint/abci/types"
)
func (suite *KeeperTestSuite) TestEndBlock() {
em := suite.ctx.EventManager()
suite.Require().Equal(0, len(em.Events()))
res := suite.app.EvmKeeper.EndBlock(suite.ctx, types.RequestEndBlock{})
suite.Require().Equal([]types.ValidatorUpdate{}, res)
// should emit 1 EventTypeBlockBloom event on EndBlock
suite.Require().Equal(1, len(em.Events()))
suite.Require().Equal(evmtypes.EventTypeBlockBloom, em.Events()[0].Type)
}