Skip to content

Commit

Permalink
fix: init IBCKeeper first
Browse files Browse the repository at this point in the history
  • Loading branch information
tungleanh0902 committed Mar 11, 2024
1 parent a8c8889 commit 0e426f9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,15 +536,6 @@ func NewEveApp(
panic(err)
}

app.Wasm08Keeper = wasm08keeper.NewKeeperWithVM(
appCodec,
runtime.NewKVStoreService(keys[wasmtypes.StoreKey]),
app.IBCKeeper.ClientKeeper,
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
wasmer,
bApp.GRPCQueryRouter(),
)

app.IBCKeeper = ibckeeper.NewKeeper(
appCodec,
keys[ibcexported.StoreKey],
Expand All @@ -555,6 +546,15 @@ func NewEveApp(
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)

app.Wasm08Keeper = wasm08keeper.NewKeeperWithVM(
appCodec,
runtime.NewKVStoreService(keys[wasmtypes.StoreKey]),
app.IBCKeeper.ClientKeeper,
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
wasmer,
bApp.GRPCQueryRouter(),
)

// Register the proposal types
// Deprecated: Avoid adding new handlers, instead use the new proposal flow
// by granting the governance module the right to execute the message.
Expand Down

0 comments on commit 0e426f9

Please sign in to comment.