Skip to content

Commit

Permalink
ibc params register
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani authored and Pantani committed Nov 20, 2023
1 parent fac8ad6 commit b8a87cd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ignite/templates/app/files/app/ibc.go.plush
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import (
ibctransferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper"
ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types"
ibc "github.com/cosmos/ibc-go/v8/modules/core"
ibcclienttypes "github.com/cosmos/ibc-go/v8/modules/core/02-client/types"
ibcconnectiontypes "github.com/cosmos/ibc-go/v8/modules/core/03-connection/types"
porttypes "github.com/cosmos/ibc-go/v8/modules/core/05-port/types"
ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported"
ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"
Expand All @@ -47,15 +49,13 @@ func (app *App) registerIBCModules() {
panic(err)
}

// set params subspaces
for _, m := range []string{
ibctransfertypes.ModuleName,
ibcexported.ModuleName,
icacontrollertypes.SubModuleName,
icahosttypes.SubModuleName,
} {
app.ParamsKeeper.Subspace(m)
}
// register the key tables for legacy param subspaces
keyTable := ibcclienttypes.ParamKeyTable()
keyTable.RegisterParamSet(&ibcconnectiontypes.Params{})
app.ParamsKeeper.Subspace(ibcexported.ModuleName).WithKeyTable(keyTable)
app.ParamsKeeper.Subspace(ibctransfertypes.ModuleName).WithKeyTable(ibctransfertypes.ParamKeyTable())
app.ParamsKeeper.Subspace(icacontrollertypes.SubModuleName).WithKeyTable(icacontrollertypes.ParamKeyTable())
app.ParamsKeeper.Subspace(icahosttypes.SubModuleName).WithKeyTable(icahosttypes.ParamKeyTable())

// add capability keeper and ScopeToModule for ibc module
app.CapabilityKeeper = capabilitykeeper.NewKeeper(
Expand Down

0 comments on commit b8a87cd

Please sign in to comment.