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

Commit

Permalink
test(ante): add test case for gasWanted on ReCheckTx mode (#1570) (#…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
mergify[bot] and GAtom22 authored Dec 22, 2022
1 parent f2549a7 commit 7c158b1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/ante/eth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7c158b1

Please sign in to comment.