Skip to content

Commit

Permalink
Make staking keeper initialization more idiomatic (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValarDragon authored Jan 18, 2022
1 parent a617511 commit 42996df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ func (app *OsmosisApp) InitNormalKeepers() {
distrKeeper := distrkeeper.NewKeeper(
appCodec, keys[distrtypes.StoreKey],
app.GetSubspace(distrtypes.ModuleName), app.AccountKeeper, app.BankKeeper,
&stakingKeeper, authtypes.FeeCollectorName, app.BlockedAddrs(),
app.StakingKeeper, authtypes.FeeCollectorName, app.BlockedAddrs(),
)
app.DistrKeeper = &distrKeeper

slashingKeeper := slashingkeeper.NewKeeper(
appCodec, keys[slashingtypes.StoreKey], &stakingKeeper, app.GetSubspace(slashingtypes.ModuleName),
appCodec, keys[slashingtypes.StoreKey], app.StakingKeeper, app.GetSubspace(slashingtypes.ModuleName),
)
app.SlashingKeeper = &slashingKeeper

Expand All @@ -160,7 +160,7 @@ func (app *OsmosisApp) InitNormalKeepers() {
appCodec,
keys[ibchost.StoreKey],
app.GetSubspace(ibchost.ModuleName),
&stakingKeeper,
app.StakingKeeper,
app.UpgradeKeeper,
app.ScopedIBCKeeper)

Expand Down

0 comments on commit 42996df

Please sign in to comment.