-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
C-forgeCommand: forgeCommand: forgeCmd-forge-scriptCommand: forge scriptCommand: forge scriptT-featureType: featureType: feature
Description
Component
Forge
Describe the feature you would like
Anvil currently has the functionality to impersonate accounts (anvil_impersonatingAccount
). However, (I think) it's currently impossible to impersonate accounts from forge script
. For example, for deploying a contract you may need approval from some existing admin contract. Currently vm.broadcast(adminContractAddress)
fails because the contract is not unlocked.
Additional context
No response
ZrowGz, rpedroni, npasquie and adamazad
Metadata
Metadata
Assignees
Labels
C-forgeCommand: forgeCommand: forgeCmd-forge-scriptCommand: forge scriptCommand: forge scriptT-featureType: featureType: feature
Type
Projects
Status
Done