Skip to content

Commit

Permalink
fix uninitiated bank keeper passed in crisis keeper
Browse files Browse the repository at this point in the history
  • Loading branch information
puneet2019 committed Sep 26, 2023
1 parent eb2f5e1 commit 0d78905
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,6 @@ func NewAppKeeper(

appKeepers.CapabilityKeeper.Seal()

appKeepers.CrisisKeeper = crisiskeeper.NewKeeper(
appKeepers.GetSubspace(crisistypes.ModuleName),
invCheckPeriod,
appKeepers.BankKeeper,
authtypes.FeeCollectorName,
)

// Add normal keepers
appKeepers.AccountKeeper = authkeeper.NewAccountKeeper(
appCodec,
Expand All @@ -178,6 +171,13 @@ func NewAppKeeper(
blockedAddress,
)

appKeepers.CrisisKeeper = crisiskeeper.NewKeeper(
appKeepers.GetSubspace(crisistypes.ModuleName),
invCheckPeriod,
appKeepers.BankKeeper,
authtypes.FeeCollectorName,
)

appKeepers.AuthzKeeper = authzkeeper.NewKeeper(
appKeepers.keys[authzkeeper.StoreKey],
appCodec,
Expand Down

0 comments on commit 0d78905

Please sign in to comment.