From bde62e2d31610a7eb15cd3b8a8bba069188f3055 Mon Sep 17 00:00:00 2001 From: yihuang Date: Tue, 22 Mar 2022 17:24:26 +0800 Subject: [PATCH] cleanup an unused const (#1009) --- app/ante/eth.go | 2 -- app/ante/eth_test.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/ante/eth.go b/app/ante/eth.go index 48f55b4c..27350448 100644 --- a/app/ante/eth.go +++ b/app/ante/eth.go @@ -17,8 +17,6 @@ import ( ethtypes "github.com/ethereum/go-ethereum/core/types" ) -const MaxTxGasWanted uint64 = 500000 - // EthSigVerificationDecorator validates an ethereum signatures type EthSigVerificationDecorator struct { evmKeeper EVMKeeper diff --git a/app/ante/eth_test.go b/app/ante/eth_test.go index e2fb65db..a4ebdaf6 100644 --- a/app/ante/eth_test.go +++ b/app/ante/eth_test.go @@ -269,7 +269,7 @@ func (suite AnteTestSuite) TestEthGasConsumeDecorator() { { "success", tx2, - ante.MaxTxGasWanted, // it's capped + config.DefaultMaxTxGasWanted, // it's capped func() { vmdb.AddBalance(addr, big.NewInt(1000000))