feat(forge/cheatcodes): "server" feature flag to disable sys env var reads #9038
Labels
A-cheatcodes
Area: cheatcodes
A-internals
Area: internals
A-library
Area: library
T-feature
Type: feature
Component
Forge
Describe the feature you would like
Tracked by #9012
In order to safely run tests on untrusted contracts in the server setting, currently users must fork to disable system env reads.
I propose adding a feature flag to the forge library crate and the cheatcodes crate to use a provided
Hashmap<String, String>
as an "injected environment".I think this should be set on the
MultiContractRunnerBuilder
and then passed to the cheat codes configAdditional context
No response
The text was updated successfully, but these errors were encountered: