From f865e0088359569605bbb46fd28de32d81494303 Mon Sep 17 00:00:00 2001 From: Martin Arrivets Date: Tue, 22 Oct 2024 14:43:30 +0200 Subject: [PATCH] chore: remove duplicate package alias in statedb_test.go --- x/evm/statedb/statedb_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/x/evm/statedb/statedb_test.go b/x/evm/statedb/statedb_test.go index 905d468684..5e62c027e7 100644 --- a/x/evm/statedb/statedb_test.go +++ b/x/evm/statedb/statedb_test.go @@ -33,7 +33,6 @@ import ( ethermint "github.com/evmos/ethermint/types" evmkeeper "github.com/evmos/ethermint/x/evm/keeper" "github.com/evmos/ethermint/x/evm/statedb" - "github.com/evmos/ethermint/x/evm/types" evmtypes "github.com/evmos/ethermint/x/evm/types" "github.com/holiman/uint256" "github.com/stretchr/testify/require" @@ -171,7 +170,7 @@ func (suite *StateDBTestSuite) TestTracer_Balance() { suite.Run(tc.name, func() { var balanceChanges []balanceChange raw, ctx, keeper := setupTestEnv(suite.T()) - t, err := types.NewFirehoseCosmosLiveTracer() + t, err := evmtypes.NewFirehoseCosmosLiveTracer() require.NoError(suite.T(), err) t.OnBalanceChange = func(addr common.Address, prev, new *big.Int, reason ethtracing.BalanceChangeReason) { balanceChanges = append(balanceChanges, balanceChange{prev.String(), new.String(), reason}) @@ -336,7 +335,7 @@ func (suite *StateDBTestSuite) TestTracer_Nonce() { suite.Run(tc.name, func() { var nonceChanges []uint64 _, ctx, keeper := setupTestEnv(suite.T()) - t, err := types.NewFirehoseCosmosLiveTracer() + t, err := evmtypes.NewFirehoseCosmosLiveTracer() require.NoError(suite.T(), err) t.OnNonceChange = func(addr common.Address, prev, new uint64) { nonceChanges = append(nonceChanges, new) @@ -1073,7 +1072,7 @@ func (suite *StateDBTestSuite) TestTracer_SetStorage() { var sChanges []storageChanges _, ctx, keeper := setupTestEnv(suite.T()) - t, err := types.NewFirehoseCosmosLiveTracer() + t, err := evmtypes.NewFirehoseCosmosLiveTracer() require.NoError(suite.T(), err) t.OnStorageChange = func(addr common.Address, slot common.Hash, prev, new common.Hash) { sChanges = append(sChanges, newStorageChange(addr.String(), slot.String(), prev.String(), new.String())) @@ -1207,7 +1206,7 @@ func setupTestEnv(t *testing.T) (storetypes.MultiStore, sdk.Context, *evmkeeper. ctx, keeper := newTestKeeper(t, cms) require.NoError(t, keeper.SetParams(ctx, evmtypes.Params{ - EvmDenom: types.DefaultEVMDenom, + EvmDenom: evmtypes.DefaultEVMDenom, })) return cms, ctx, keeper }