Skip to content

Commit

Permalink
Adding paramsKeeper.Subspace(icahosttypes.SubModuleName) (cosmos#2220)
Browse files Browse the repository at this point in the history
* Adding `paramsKeeper.Subspace(icahosttypes.SubModuleName)`

Adding `paramsKeeper.Subspace(icahosttypes.SubModuleName)` at `initParamsKeeper` func

* fix spaces

* adding missing paramsKeeper

paramsKeeper.Subspace(icacontrollertypes.SubModuleName)

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 20, 2022
1 parent 6b7d67f commit 7b26bda
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/apps/interchain-accounts/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ app.mm.SetOrderInitGenesis(
icatypes.ModuleName,
...
)

// initParamsKeeper init params keeper and its subspaces
func initParamsKeeper(appCodec codec.BinaryCodec, legacyAmino *codec.LegacyAmino, key, tkey sdk.StoreKey) paramskeeper.Keeper {
...
paramsKeeper.Subspace(icahosttypes.SubModuleName)
paramsKeeper.Subspace(icacontrollertypes.SubModuleName)
...
```
### Using submodules exclusively
Expand Down

0 comments on commit 7b26bda

Please sign in to comment.