Skip to content

Commit

Permalink
resolve unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jelysn committed Dec 13, 2023
1 parent f29854e commit 051de59
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions testutil/keeper/accountedpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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, &params)

return k, ctx
}

0 comments on commit 051de59

Please sign in to comment.