diff --git a/app/keepers/keepers.go b/app/keepers/keepers.go index 179e46a350d..ba60ea78d9e 100644 --- a/app/keepers/keepers.go +++ b/app/keepers/keepers.go @@ -366,7 +366,7 @@ func (appKeepers *AppKeepers) InitNormalKeepers( govKeeper := govkeeper.NewKeeper( appCodec, appKeepers.keys[govtypes.StoreKey], appKeepers.GetSubspace(govtypes.ModuleName), appKeepers.AccountKeeper, appKeepers.BankKeeper, - appKeepers.StakingKeeper, govRouter) + appKeepers.SuperfluidKeeper, govRouter) appKeepers.GovKeeper = &govKeeper } diff --git a/x/superfluid/keeper/keeper.go b/x/superfluid/keeper/keeper.go index 4bea94823c5..e1bc10185e5 100644 --- a/x/superfluid/keeper/keeper.go +++ b/x/superfluid/keeper/keeper.go @@ -10,6 +10,7 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" ) @@ -31,6 +32,8 @@ type Keeper struct { lms types.LockupMsgServer } +var _ govtypes.StakingKeeper = (*Keeper)(nil) + // NewKeeper returns an instance of Keeper. func NewKeeper(cdc codec.Codec, storeKey sdk.StoreKey, paramSpace paramtypes.Subspace, ak authkeeper.AccountKeeper, bk types.BankKeeper, sk types.StakingKeeper, dk types.DistrKeeper, ek types.EpochKeeper, lk types.LockupKeeper, gk types.GammKeeper, ik types.IncentivesKeeper, lms types.LockupMsgServer) *Keeper { // set KeyTable if it has not already been set