Skip to content

Commit

Permalink
fix uninitiated bank keeper passed in crisis keeper (cosmos#2753)
Browse files Browse the repository at this point in the history
Co-authored-by: Marius Poke <marius.poke@posteo.de>
  • Loading branch information
puneet2019 and mpoke authored Sep 27, 2023
1 parent 5e3947f commit 01bdd32
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 01bdd32

Please sign in to comment.