From 051de5941044ac1d4a11f14faa63c831ae16aa7d Mon Sep 17 00:00:00 2001 From: jelysn Date: Thu, 14 Dec 2023 00:08:50 +0800 Subject: [PATCH] resolve unit test --- testutil/keeper/accountedpool.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/testutil/keeper/accountedpool.go b/testutil/keeper/accountedpool.go index a6a65dd4f..c72cbab84 100644 --- a/testutil/keeper/accountedpool.go +++ b/testutil/keeper/accountedpool.go @@ -11,7 +11,6 @@ import ( "github.com/cosmos/cosmos-sdk/store" storetypes "github.com/cosmos/cosmos-sdk/store/types" sdk "github.com/cosmos/cosmos-sdk/types" - typesparams "github.com/cosmos/cosmos-sdk/x/params/types" "github.com/elys-network/elys/x/accountedpool/keeper" "github.com/elys-network/elys/x/accountedpool/types" "github.com/stretchr/testify/require" @@ -29,26 +28,14 @@ func AccountedPoolKeeper(t testing.TB) (*keeper.Keeper, sdk.Context) { registry := codectypes.NewInterfaceRegistry() cdc := codec.NewProtoCodec(registry) - - paramsSubspace := typesparams.NewSubspace(cdc, - types.Amino, - storeKey, - memStoreKey, - "AccountedPoolParams", - ) k := keeper.NewKeeper( cdc, storeKey, memStoreKey, - paramsSubspace, nil, ) ctx := sdk.NewContext(stateStore, tmproto.Header{}, false, log.NewNopLogger()) - params := types.DefaultParams() - // Initialize params - k.SetParams(ctx, ¶ms) - return k, ctx }