feat: --unlocked
flag for Anvil which enables autoImpersonate
on startup
#5334
Labels
T-feature
Type: feature
Component
Anvil
Describe the feature you would like
Currently, in order to enable auto-impersonation of accounts in Anvil, you need to call the
anvil_autoImpersonate
RPC method on your local Anvil instance:This can be done through
curl
like so:Or through
cast rpc
:cast rpc anvil_autoImpersonateAccount true
It would be convenient to have an
--unlocked
flag when creating an Anvil instance to enable auto-impersonation on startup. Not dissimilar from the flag of the same name forcast send
.Additional context
Am happy to work on this myself if it's a feature we decide to add.
Indeed, I've already looked at the Anvil source yet have a few questions however.
The text was updated successfully, but these errors were encountered: