Using keystore instead of private key #4778
usereri
started this conversation in
Show and tell
Replies: 1 comment
-
|
Thanks for this heads-up, it is greatly appreciated. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Thought it might be helpful for someone doing FundMe project or probably any other requiring deploying on chain.
Current method
During course we created a make file with deploy function:
Proposed method using keystore
cast wallet import docs
You will be asked to:
It should list all wallets you got (probably just one recently created)
Now when using
make deploy-sepoliayou will be asked to provide password to keystore and thus you can get rid of private key in .env file.Important notes
~/.foundry/keystores/KEYSTORE_PATHto your.envfileBenefits
Beta Was this translation helpful? Give feedback.
All reactions