Gas meter shows huge number when using vm.pauseGasMetering() along with delete X
#4370
Closed
2 tasks
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 (25fcfef 2023-02-11T00:08:44.860915008Z)
What command(s) is the bug in?
forge test
Operating System
Linux
Describe the bug
Not sure exactly what is happening, but it seems like an integer overflow of some sort.
In one of my tests I am using
vm.pauseGasMetering()
/vm.resumeGasMetering()
while also removing data from the storage.Here is the simplest reproduction I could find:
The output of
forge test
looks like this:If there are any pointers to where the issue might be, I wouldn't mind trying to fix this myself and send a PR.
The text was updated successfully, but these errors were encountered: