refactor(cheatcodes
): move script_wallets
into Cheatcode
#9104
Labels
A-cheatcodes
Area: cheatcodes
Cmd-forge-script
Command: forge script
Cmd-forge-test
Command: forge test
T-feature
Type: feature
Milestone
Originally posted by @klkvr in #9087 (review)
#9087 intoduces cheatcodes that lets users add unlocked wallets to the forge environment not only in scripts but also in tests.
This works well for scripts but can lead to a performance lag when used in tests as we may clone the
cheatcodes_config
viaArc::make_mut(&mut state.config)
to modifyscript_wallets
Possible solution: Move
script_wallets
intoCheatcodes
and rename it towallets
. Add new API methodwallets(&self, wallets)
to theInspectorStackBuilder
interface. Use that while initializing cheatcodes for tests and scripts.The text was updated successfully, but these errors were encountered: