Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina committed Apr 18, 2024
1 parent b6ef4f5 commit c024df8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions x/evm/keeper/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/evmos/ethermint/app"
"github.com/evmos/ethermint/encoding"
"github.com/evmos/ethermint/x/evm/keeper"
"github.com/evmos/ethermint/x/evm/types"
legacytypes "github.com/evmos/ethermint/x/evm/types/legacy"
legacytestutil "github.com/evmos/ethermint/x/evm/types/legacy/testutil"
"github.com/evmos/ethermint/x/evm/vm/geth"
)

func (suite *KeeperTestSuite) TestParams() {
Expand Down Expand Up @@ -150,8 +150,8 @@ func (suite *KeeperTestSuite) TestLegacyParamsKeyTableRegistration() {
return keeper.NewKeeper(
cdc, storeKey, tKey, authtypes.NewModuleAddress("gov"),
ak,
nil, nil, nil, nil, // OK to pass nil in for these since we only instantiate and use params
geth.NewEVM,
nil, nil, nil, // OK to pass nil in for these since we only instantiate and use params
vm.NewEVM,
"",
unregisteredSubspace,
)
Expand Down Expand Up @@ -207,8 +207,8 @@ func (suite *KeeperTestSuite) TestRenamedFieldReturnsProperValueForLegacyParams(
k := keeper.NewKeeper(
cdc, storeKey, tKey, authtypes.NewModuleAddress("gov"),
ak,
nil, nil, nil, nil,
geth.NewEVM,
nil, nil, nil,
vm.NewEVM,
"",
subspace,
)
Expand Down Expand Up @@ -239,8 +239,8 @@ func (suite *KeeperTestSuite) TestNilLegacyParamsDoNotPanic() {
k := keeper.NewKeeper(
cdc, storeKey, tKey, authtypes.NewModuleAddress("gov"),
ak,
nil, nil, nil, nil, // OK to pass nil in for these since we only instantiate and use params
geth.NewEVM,
nil, nil, nil, // OK to pass nil in for these since we only instantiate and use params
vm.NewEVM,
"",
subspace,
)
Expand Down

0 comments on commit c024df8

Please sign in to comment.