Add a vm.isSimulation() cheatcode #3928
Labels
A-cheatcodes
Area: cheatcodes
Cmd-forge-script
Command: forge script
D-easy
Difficulty: easy
good first issue
Good for newcomers
T-feature
Type: feature
Component
Forge
Describe the feature you would like
I would like for my scripts to skip certain operations in the pre-broadcast simulations.
Without the ability to differentiate whether the script is executing in a simulation at runtime, I can't perform certain operations that require persistent storage because the simulation gets in the way.
Additional context
No response
The text was updated successfully, but these errors were encountered: