Skip to content

Commit

Permalink
fix: fix haqqbank module
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurist-85 committed Oct 16, 2023
1 parent eb63d11 commit 7e92c18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ func NewHaqq(
authAddr,
)
haqqBankKeeper := haqqbankkeeper.NewBaseKeeper(
appCodec, keys[banktypes.StoreKey], keys[distrtypes.StoreKey], app.AccountKeeper, app.DistrKeeper, app.GetSubspace(banktypes.ModuleName), app.BlockedAddrs(),
appCodec, keys[banktypes.StoreKey], keys[distrtypes.StoreKey], app.AccountKeeper, app.DistrKeeper, app.BlockedAddrs(), authAddr,
)
app.BankKeeper = bankkeeper.NewBaseKeeper(
appCodec, keys[banktypes.StoreKey], app.AccountKeeper, app.BlockedAddrs(), authAddr,
Expand Down
5 changes: 2 additions & 3 deletions x/bank/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
distrtypes "github.com/cosmos/cosmos-sdk/x/distribution/types"

govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
)

Expand All @@ -29,11 +28,11 @@ func NewBaseKeeper(
distrStoreKey storetypes.StoreKey,
ak banktypes.AccountKeeper,
dk distrkeeper.Keeper,
paramSpace paramtypes.Subspace,
blockedAddrs map[string]bool,
authority string,
) BaseKeeper {
return BaseKeeper{
BaseKeeper: bankkeeper.NewBaseKeeper(cdc, storeKey, ak, paramSpace, blockedAddrs),
BaseKeeper: bankkeeper.NewBaseKeeper(cdc, storeKey, ak, blockedAddrs, authority),
ak: ak,
dk: dk,
distrStoreKey: distrStoreKey,
Expand Down

0 comments on commit 7e92c18

Please sign in to comment.