From c024df8c85bc046c2e065ede6f0f0a4c09f5c323 Mon Sep 17 00:00:00 2001 From: evgeniy-scherbina Date: Thu, 18 Apr 2024 16:10:59 -0400 Subject: [PATCH] Fix unit tests --- x/evm/keeper/params_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/x/evm/keeper/params_test.go b/x/evm/keeper/params_test.go index af64009aab..38fc687f10 100644 --- a/x/evm/keeper/params_test.go +++ b/x/evm/keeper/params_test.go @@ -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() { @@ -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, ) @@ -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, ) @@ -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, )