You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, we have cast wallet import defaultKey --interactive so that we can import our private key here, to avoid it using in .env file
and then we can use --account defaultKey --sender <wallet_address> in cli while we are deploying our contract to avoid using $PRIVATE_KEY.
now, let's say in script/deploy.s.sol I have used private key like vm.envUnit("PRIVATE_KEY)
now, how can I use key that I stored in keystore wallet, so that I can avoid pasting key in cli or .env
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, we have
cast wallet import defaultKey --interactive
so that we can import our private key here, to avoid it using in .env fileand then we can use
--account defaultKey --sender <wallet_address>
in cli while we are deploying our contract to avoid using $PRIVATE_KEY.now, let's say in script/deploy.s.sol I have used private key like
vm.envUnit("PRIVATE_KEY)
now, how can I use key that I stored in keystore wallet, so that I can avoid pasting key in cli or .env
Beta Was this translation helpful? Give feedback.
All reactions