From 50b1d22ba256c0cf116b01617821f1086e05cdba Mon Sep 17 00:00:00 2001 From: dudong2 Date: Wed, 3 Jul 2024 12:02:44 +0900 Subject: [PATCH] chore: Remove deprecated sdk.WrapSDKContext --- x/evm/handler_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/x/evm/handler_test.go b/x/evm/handler_test.go index 52b3ffc7a6..e0e46f0947 100644 --- a/x/evm/handler_test.go +++ b/x/evm/handler_test.go @@ -30,7 +30,6 @@ import ( "github.com/stretchr/testify/suite" "github.com/cosmos/cosmos-sdk/baseapp" - "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/crypto/keyring" sdk "github.com/cosmos/cosmos-sdk/types" @@ -54,7 +53,6 @@ type EvmTestSuite struct { ctx sdk.Context handler baseapp.MsgServiceHandler app *app.EthermintApp - codec codec.Codec chainID *big.Int signer keyring.Signer @@ -613,7 +611,7 @@ func (suite *EvmTestSuite) TestERC20TransferReverted() { err = k.DeductTxCostsFromUserBalance(suite.ctx, fees, common.HexToAddress(tx.From)) suite.Require().NoError(err) - res, err := k.EthereumTx(sdk.WrapSDKContext(suite.ctx), tx) + res, err := k.EthereumTx(suite.ctx, tx) suite.Require().NoError(err) suite.Require().True(res.Failed()) @@ -686,7 +684,7 @@ func (suite *EvmTestSuite) TestContractDeploymentRevert() { db.SetNonce(suite.from, nonce+1) suite.Require().NoError(db.Commit()) - rsp, err := k.EthereumTx(sdk.WrapSDKContext(suite.ctx), tx) + rsp, err := k.EthereumTx(suite.ctx, tx) suite.Require().NoError(err) suite.Require().True(rsp.Failed())