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
* fix(abci): fix reCheckTx gas wanted'

* fix(ante): add changelog entry

* fix(ante): add test case
  • Loading branch information
GAtom22 authored Dec 22, 2022
1 parent ea677fc commit d3a60a0
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 d3a60a0

Please sign in to comment.