From 0e426f92b18083516a2a0bfb975b889439692428 Mon Sep 17 00:00:00 2001 From: tungle Date: Mon, 11 Mar 2024 14:17:59 +0700 Subject: [PATCH] fix: init IBCKeeper first --- app/app.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/app.go b/app/app.go index 9d5333d1..36ad85b4 100644 --- a/app/app.go +++ b/app/app.go @@ -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], @@ -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.