Forge test reports a huge gas number if vm.pauseGasMetering is in effect at the end of a test #5491
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 (0e33b3e 2023-07-28T00:23:39.362605000Z)
What command(s) is the bug in?
forge test
Operating System
macOS (Apple Silicon)
Describe the bug
If a test completes after calling
vm.pauseGasMetering(),
and without callingvm.resumeGasMetering()
, it will report gas usage is exactly9223372036854754743
(2**63 - 21065?).Minimal reproduction:
Output:
The text was updated successfully, but these errors were encountered: