Skip to content

Commit

Permalink
added slashingKeeper to EVMStoreChain module
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsuryansh committed Jul 2, 2023
1 parent 20643f6 commit cf5e142
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions x/evmstorechain/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -95,19 +96,22 @@ type AppModule struct {
keeper keeper.Keeper
accountKeeper types.AccountKeeper
bankKeeper types.BankKeeper
slashingKeeper slashingkeeper.Keeper
}

func NewAppModule(
cdc codec.Codec,
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,
}
}

Expand Down

0 comments on commit cf5e142

Please sign in to comment.