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 d3a60a02ea)

Co-authored-by: Tomas Guerra <54514587+GAtom22@users.noreply.github.com>
This commit is contained in:
mergify[bot] 2022-12-22 16:32:39 +01:00 committed by GitHub
parent f2549a7b76
commit 7c158b10ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {