Skip to content

Commit

Permalink
fix ibc
Browse files Browse the repository at this point in the history
  • Loading branch information
DongLieu committed Oct 21, 2024
1 parent 13378e4 commit 067fa57
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions app/keepers/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,7 @@ func NewAppKeeper(
authtypes.FeeCollectorName,
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)
ibcmodule := transfer.NewIBCModule(appKeepers.TransferKeeper)

// Create static IBC router, add transfer route, then set and seal it.
ibcRouter := porttypes.NewRouter()
ibcRouter.AddRoute(ibctransfertypes.ModuleName, ibcmodule)
appKeepers.IBCKeeper.SetRouter(ibcRouter)
// 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 Expand Up @@ -409,6 +404,14 @@ func NewAppKeeper(
authtypes.NewModuleAddress(govtypes.ModuleName).String(),
)

ibcmodule := transfer.NewIBCModule(appKeepers.TransferKeeper)

// Create static IBC router, add transfer route, then set and seal it.
ibcRouter := porttypes.NewRouter().
AddRoute(ibctransfertypes.ModuleName, ibcmodule)

appKeepers.IBCKeeper.SetRouter(ibcRouter)

return appKeepers
}

Expand Down Expand Up @@ -441,7 +444,7 @@ func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino
paramsKeeper.Subspace(daotypes.ModuleName)
paramsKeeper.Subspace(psmtypes.ModuleName)
paramsKeeper.Subspace(auctiontypes.ModuleName)
paramsKeeper.Subspace(oracletypes.ModuleName).WithKeyTable(ibctransfertypes.ParamKeyTable())
paramsKeeper.Subspace(oracletypes.ModuleName)
paramsKeeper.Subspace(vaultstypes.ModuleName)

return paramsKeeper
Expand Down

0 comments on commit 067fa57

Please sign in to comment.