diff --git a/app/app.go b/app/app.go index 5562169..f79e6da 100644 --- a/app/app.go +++ b/app/app.go @@ -525,7 +525,7 @@ func New( keys[evmstorechainmoduletypes.MemStoreKey], app.GetSubspace(evmstorechainmoduletypes.ModuleName), ) - evmstorechainModule := evmstorechainmodule.NewAppModule(appCodec, app.EvmstorechainKeeper, app.AccountKeeper, app.BankKeeper) + evmstorechainModule := evmstorechainmodule.NewAppModule(appCodec, app.EvmstorechainKeeper, app.AccountKeeper, app.BankKeeper, app.SlashingKeeper,) // this line is used by starport scaffolding # stargate/app/keeperDefinition diff --git a/x/evmstorechain/module.go b/x/evmstorechain/module.go index 140301e..673d235 100644 --- a/x/evmstorechain/module.go +++ b/x/evmstorechain/module.go @@ -20,6 +20,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" "strconv" + slashingkeeper "github.com/cosmos/cosmos-sdk/x/slashing/keeper" ) var ( @@ -95,6 +96,7 @@ type AppModule struct { keeper keeper.Keeper accountKeeper types.AccountKeeper bankKeeper types.BankKeeper + slashingKeeper slashingkeeper.Keeper } func NewAppModule( @@ -102,12 +104,14 @@ func NewAppModule( keeper keeper.Keeper, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, + slashingKeeper slashingkeeper.Keeper, ) AppModule { return AppModule{ AppModuleBasic: NewAppModuleBasic(cdc), keeper: keeper, accountKeeper: accountKeeper, bankKeeper: bankKeeper, + slashingKeeper: slashingKeeper, } }