diff --git a/x/fswap/keeper/keeper.go b/x/fswap/keeper/keeper.go index e81236cf43..329b87cf80 100644 --- a/x/fswap/keeper/keeper.go +++ b/x/fswap/keeper/keeper.go @@ -6,36 +6,31 @@ import ( "github.com/tendermint/tendermint/libs/log" "github.com/Finschia/finschia-sdk/codec" + storetypes "github.com/Finschia/finschia-sdk/store/types" sdk "github.com/Finschia/finschia-sdk/types" "github.com/Finschia/finschia-sdk/x/fswap/types" - paramtypes "github.com/Finschia/finschia-sdk/x/params/types" ) type ( Keeper struct { - cdc codec.BinaryCodec - storeKey sdk.StoreKey - memKey sdk.StoreKey - paramstore paramtypes.Subspace + cdc codec.BinaryCodec + accountKeeper types.AccountKeeper + bankKeeper types.BankKeeper + storeKey storetypes.StoreKey } ) func NewKeeper( cdc codec.BinaryCodec, - storeKey, - memKey sdk.StoreKey, - ps paramtypes.Subspace, -) *Keeper { - // set KeyTable if it has not already been set - if !ps.HasKeyTable() { - ps = ps.WithKeyTable(types.ParamKeyTable()) - } - - return &Keeper{ - cdc: cdc, - storeKey: storeKey, - memKey: memKey, - paramstore: ps, + ak types.AccountKeeper, + bk types.BankKeeper, + storeKey storetypes.StoreKey, +) Keeper { + return Keeper{ + cdc: cdc, + accountKeeper: ak, + bankKeeper: bk, + storeKey: storeKey, } } diff --git a/x/fswap/keeper/params.go b/x/fswap/keeper/params.go index 77d2823f2e..5a539d551a 100644 --- a/x/fswap/keeper/params.go +++ b/x/fswap/keeper/params.go @@ -12,5 +12,5 @@ func (k Keeper) GetParams(ctx sdk.Context) types.Params { // SetParams set the params func (k Keeper) SetParams(ctx sdk.Context, params types.Params) { - k.paramstore.SetParamSet(ctx, ¶ms) + // k.paramstore.SetParamSet(ctx, ¶ms) }