Skip to content

Commit

Permalink
fix ibcrouting
Browse files Browse the repository at this point in the history
  • Loading branch information
puneet2019 committed Dec 18, 2023
1 parent f654d9e commit a54dfa7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,16 +512,16 @@ func NewpStakeApp(
icaHostStack = ibcfee.NewIBCMiddleware(icaHostStack, app.IBCFeeKeeper)

var icaControllerStack porttypes.IBCModule = liquidStakeIBCModule
icaControllerStack = ratesync.NewIBCModule(*app.RatesyncKeeper, icaHostStack)
icaControllerStack = ratesync.NewIBCModule(icaControllerStack, *app.RatesyncKeeper)
icaControllerStack = icacontroller.NewIBCMiddleware(icaControllerStack, app.ICAControllerKeeper)

ibcRouter := porttypes.NewRouter()
ibcRouter.
AddRoute(ibctransfertypes.ModuleName, transferStack).
AddRoute(icahosttypes.SubModuleName, icaHostStack).
AddRoute(icacontrollertypes.SubModuleName, icaControllerStack).
AddRoute(liquidstakeibctypes.ModuleName, icaControllerStack).
AddRoute(ratesynctypes.ModuleName, icaControllerStack)
AddRoute(icacontrollertypes.SubModuleName, icaControllerStack)
//AddRoute(liquidstakeibctypes.ModuleName, icaControllerStack).
//AddRoute(ratesynctypes.ModuleName, icaControllerStack)

app.IBCKeeper.SetRouter(ibcRouter)

Expand Down
2 changes: 1 addition & 1 deletion x/ratesync/module_ibc.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type IBCModule struct {
keeper keeper.Keeper
}

func NewIBCModule(keeper keeper.Keeper, appStack porttypes.IBCModule) IBCModule {
func NewIBCModule(appStack porttypes.IBCModule, keeper keeper.Keeper) IBCModule {
return IBCModule{
appStack: appStack,
keeper: keeper,
Expand Down

0 comments on commit a54dfa7

Please sign in to comment.