Skip to content

Commit

Permalink
chore: add capability keeper seal
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamu committed Sep 28, 2023
1 parent 8a4abed commit fafc67a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,11 @@ func NewDesmosApp(
scopedICAControllerKeeper := app.CapabilityKeeper.ScopeToModule(icacontrollertypes.SubModuleName)
scopedICAHostKeeper := app.CapabilityKeeper.ScopeToModule(icahosttypes.SubModuleName)

// seal capability keeper after scoping modules
// Applications that wish to enforce statically created ScopedKeepers should call `Seal` after creating
// their scoped modules in `NewApp` with `ScopeToModule`
app.CapabilityKeeper.Seal()

// Create IBC keeper
app.IBCKeeper = ibckeeper.NewKeeper(
app.appCodec, storeKeys[ibcexported.StoreKey], app.GetSubspace(ibcexported.ModuleName), app.StakingKeeper, app.UpgradeKeeper, scopedIBCKeeper, authtypes.NewModuleAddress(govtypes.ModuleName).String(),
Expand Down

0 comments on commit fafc67a

Please sign in to comment.