bug(forge test
): storage inside the test contract is not persisted between forks
#10296
Closed
2 tasks done
Labels
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge Version: 1.0.0-stable Commit SHA: e144b82 Build Timestamp: 2025-02-13T20:02:34.979686000Z (1739476954) Build Profile: maxperf
What version of Foundryup are you on?
foundryup: 1.0.1
What command(s) is the bug in?
forge test
Operating System
macOS (Apple Silicon)
Describe the bug
There is a very strange bug where storage inside the test contract is not persisted between forks. I have created a minimal version of the bug here: https://github.com/hexonaut/fork-storage-issue
The readme explains things. I'm not sure why exactly it is happening, but it should be clear in the example what is wrong.
I'll paste the code here too just for easy reference:
The text was updated successfully, but these errors were encountered: