vm.resumeGasMetering
can cause tests with expected reverts to fail with an OutOfGas
error
#5564
Closed
2 tasks done
Labels
A-cheatcodes
Area: cheatcodes
C-forge
Command: forge
Cmd-forge-test
Command: forge test
T-bug
Type: bug
Milestone
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (6672134 2023-08-08T00:21:59.824374000Z)
What command(s) is the bug in?
forge test
Operating System
macOS (Apple Silicon)
Describe the bug
After calling
vm.pauseGasMetering
, callingvm.resumeGasMetering
within a reverting external call causes tests to fail with anOutOfGas
error.There seem to broadly be inconsistencies and unexpected behavior with the
GasMetering
functions; see #5491 as possibly related.A reproduction, which eliminates self-external-calls as the issue.
Output of running these tests:
The text was updated successfully, but these errors were encountered: