forge script
should support loading private key from environment
#7814
Labels
T-feature
Type: feature
forge script
should support loading private key from environment
#7814
Component
Forge
Describe the feature you would like
It would be useful if
forge script
had some way to load an account from a private key in the environment without passing the private key as a flag (similar to how using the--aws
flag loadsAWS_KMS_KEY_ID
).Currently a private key can be provided to
forge script
with the--private-key
flag or by reading it in the script:It is not always appropriate to use a flag because it requires manipulating the private key in the command line (as opposed to using .env). On the other hand, loading the key directly in the script limits the script to working with the private key signer.
Additional context
No response
The text was updated successfully, but these errors were encountered: