From 7c158b10ba6b25a933cdc39523649589af97ea98 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 22 Dec 2022 16:32:39 +0100 Subject: [PATCH] test(ante): add test case for `gasWanted` on ReCheckTx mode (#1570) (#1571) * fix(abci): fix reCheckTx gas wanted' * fix(ante): add changelog entry * fix(ante): add test case (cherry picked from commit d3a60a02eacabb1e099fdcd406f89add3b588deb) Co-authored-by: Tomas Guerra <54514587+GAtom22@users.noreply.github.com> --- app/ante/eth_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/ante/eth_test.go b/app/ante/eth_test.go index 6d42310c35..0fb9ea8b20 100644 --- a/app/ante/eth_test.go +++ b/app/ante/eth_test.go @@ -279,6 +279,17 @@ func (suite AnteTestSuite) TestEthGasConsumeDecorator() { true, false, dynamicFeeTxPriority, }, + { + "success - gas limit on gasMeter is set on ReCheckTx mode", + dynamicFeeTx, + 0, // for reCheckTX mode, gas limit should be set to 0 + func() { + vmdb.AddBalance(addr, big.NewInt(1001000000000000)) + suite.ctx = suite.ctx.WithIsReCheckTx(true) + }, + true, false, + 0, + }, } for _, tc := range testCases {