diff --git a/cosmos/x/evm/keeper/abci.go b/cosmos/x/evm/keeper/abci.go index c5fc838b3..72a064d75 100644 --- a/cosmos/x/evm/keeper/abci.go +++ b/cosmos/x/evm/keeper/abci.go @@ -28,7 +28,7 @@ import ( ) // Precommit runs on the Cosmo-SDK lifecycle Precommit(). -func (k *Keeper) Precommit(ctx context.Context) error { +func (k *Keeper) EndBlock(ctx context.Context) error { // Verify that the EVM block was written. // TODO: Set/GetHead to set and get the canonical head. blockNum := uint64(sdk.UnwrapSDKContext(ctx).BlockHeight()) diff --git a/cosmos/x/evm/module.go b/cosmos/x/evm/module.go index 07d2d653a..82fb1301e 100644 --- a/cosmos/x/evm/module.go +++ b/cosmos/x/evm/module.go @@ -45,7 +45,7 @@ const ConsensusVersion = 1 var ( _ appmodule.HasServices = AppModule{} _ appmodule.HasPrepareCheckState = AppModule{} - _ appmodule.HasPrecommit = AppModule{} + _ appmodule.HasEndBlocker = AppModule{} _ module.AppModule = AppModule{} _ module.AppModuleBasic = AppModuleBasic{} ) @@ -132,6 +132,6 @@ func (am AppModule) PrepareCheckState(ctx context.Context) error { } // Precommit performs precommit operations. -func (am AppModule) Precommit(ctx context.Context) error { - return am.keeper.Precommit(ctx) +func (am AppModule) EndBlock(ctx context.Context) error { + return am.keeper.EndBlock(ctx) } diff --git a/e2e/testapp/app_config.go b/e2e/testapp/app_config.go index 0807972e0..97b9d1c9f 100644 --- a/e2e/testapp/app_config.go +++ b/e2e/testapp/app_config.go @@ -138,14 +138,12 @@ func MakeAppConfig(bech32Prefix string) depinject.Config { genutiltypes.ModuleName, }, EndBlockers: []string{ + evmtypes.ModuleName, crisistypes.ModuleName, govtypes.ModuleName, stakingtypes.ModuleName, genutiltypes.ModuleName, }, - Precommiters: []string{ - evmtypes.ModuleName, - }, OverrideStoreKeys: []*runtimev1alpha1.StoreKeyConfig{ { ModuleName: authtypes.ModuleName,