wormchain: fix wormhole keeper wasmd field

This commit is contained in:
Conor Patrick 2023-01-24 20:06:47 +00:00 committed by Evan Gray
parent fac7e10eb4
commit ad3a62c0dc
1 changed files with 2 additions and 2 deletions

View File

@ -319,8 +319,6 @@ func New(
app.BankKeeper,
)
wormholeModule := wormholemodule.NewAppModule(appCodec, app.WormholeKeeper)
stakingKeeper := stakingkeeper.NewKeeper(
appCodec, keys[stakingtypes.StoreKey], app.AccountKeeper, app.BankKeeper, app.WormholeKeeper, app.GetSubspace(stakingtypes.ModuleName),
)
@ -414,6 +412,8 @@ func New(
)
permissionedWasmKeeper := wasmkeeper.NewDefaultPermissionKeeper(app.wasmKeeper)
app.WormholeKeeper.SetWasmdKeeper(permissionedWasmKeeper)
// the wormhole module must be instantiated after the wasmd module
wormholeModule := wormholemodule.NewAppModule(appCodec, app.WormholeKeeper)
// this line is used by starport scaffolding # stargate/app/keeperDefinition