Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit 7c158b1

Browse files
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 d3a60a0) Co-authored-by: Tomas Guerra <54514587+GAtom22@users.noreply.github.com>
1 parent f2549a7 commit 7c158b1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

app/ante/eth_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,17 @@ func (suite AnteTestSuite) TestEthGasConsumeDecorator() {
279279
true, false,
280280
dynamicFeeTxPriority,
281281
},
282+
{
283+
"success - gas limit on gasMeter is set on ReCheckTx mode",
284+
dynamicFeeTx,
285+
0, // for reCheckTX mode, gas limit should be set to 0
286+
func() {
287+
vmdb.AddBalance(addr, big.NewInt(1001000000000000))
288+
suite.ctx = suite.ctx.WithIsReCheckTx(true)
289+
},
290+
true, false,
291+
0,
292+
},
282293
}
283294

284295
for _, tc := range testCases {

0 commit comments

Comments
 (0)