Skip to content

Commit f7343e5

Browse files
committed
fix scoped capability keepers
1 parent a54f0ea commit f7343e5

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

app/app.go

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,12 @@ func NewMinitiaApp(
317317
app.CapabilityKeeper = capabilitykeeper.NewKeeper(appCodec, keys[capabilitytypes.StoreKey], memKeys[capabilitytypes.MemStoreKey])
318318

319319
// grant capabilities for the ibc and ibc-transfer modules
320-
scopedIBCKeeper := app.CapabilityKeeper.ScopeToModule(ibcexported.ModuleName)
321-
scopedTransferKeeper := app.CapabilityKeeper.ScopeToModule(ibctransfertypes.ModuleName)
322-
scopedICAHostKeeper := app.CapabilityKeeper.ScopeToModule(icahosttypes.SubModuleName)
323-
scopedICAControllerKeeper := app.CapabilityKeeper.ScopeToModule(icacontrollertypes.SubModuleName)
324-
scopedICAAuthKeeper := app.CapabilityKeeper.ScopeToModule(icaauthtypes.ModuleName)
325-
scopedWasmKeeper := app.CapabilityKeeper.ScopeToModule(wasmtypes.ModuleName)
320+
app.ScopedIBCKeeper = app.CapabilityKeeper.ScopeToModule(ibcexported.ModuleName)
321+
app.ScopedTransferKeeper = app.CapabilityKeeper.ScopeToModule(ibctransfertypes.ModuleName)
322+
app.ScopedICAHostKeeper = app.CapabilityKeeper.ScopeToModule(icahosttypes.SubModuleName)
323+
app.ScopedICAControllerKeeper = app.CapabilityKeeper.ScopeToModule(icacontrollertypes.SubModuleName)
324+
app.ScopedICAAuthKeeper = app.CapabilityKeeper.ScopeToModule(icaauthtypes.ModuleName)
325+
app.ScopedWasmKeeper = app.CapabilityKeeper.ScopeToModule(wasmtypes.ModuleName)
326326
app.ScopedICQKeeper = app.CapabilityKeeper.ScopeToModule(icqtypes.ModuleName)
327327
app.ScopedFetchPriceKeeper = app.CapabilityKeeper.ScopeToModule(fetchpricetypes.ModuleName)
328328

@@ -421,7 +421,7 @@ func NewMinitiaApp(
421421
nil, // we don't need migration
422422
app.OPChildKeeper,
423423
app.UpgradeKeeper,
424-
scopedIBCKeeper,
424+
app.ScopedIBCKeeper,
425425
authorityAddr,
426426
)
427427

@@ -458,7 +458,7 @@ func NewMinitiaApp(
458458
app.IBCKeeper.PortKeeper,
459459
app.AccountKeeper,
460460
app.BankKeeper,
461-
scopedTransferKeeper,
461+
app.ScopedTransferKeeper,
462462
authorityAddr,
463463
)
464464
app.TransferKeeper = &transferKeeper
@@ -647,7 +647,7 @@ func NewMinitiaApp(
647647
app.IBCFeeKeeper, // ISC4 Wrapper: fee IBC middleware
648648
app.IBCKeeper.ChannelKeeper,
649649
app.IBCKeeper.PortKeeper,
650-
scopedWasmKeeper,
650+
app.ScopedWasmKeeper,
651651
app.TransferKeeper,
652652
app.MsgServiceRouter(),
653653
app.GRPCQueryRouter(),
@@ -904,13 +904,6 @@ func NewMinitiaApp(
904904
}
905905
}
906906

907-
app.ScopedIBCKeeper = scopedIBCKeeper
908-
app.ScopedTransferKeeper = scopedTransferKeeper
909-
app.ScopedICAHostKeeper = scopedICAHostKeeper
910-
app.ScopedICAControllerKeeper = scopedICAControllerKeeper
911-
app.ScopedICAAuthKeeper = scopedICAAuthKeeper
912-
app.ScopedWasmKeeper = scopedWasmKeeper
913-
914907
return app
915908
}
916909

0 commit comments

Comments
 (0)