Note: Don't do the below steps in vs code terminal use mac terminal while encrypting
cast wallet import your-account-name --interactive
Enter private key:
Enter password:
`your-account-name` keystore was saved successfully. Address: address-corresponding-to-private-key
Once we Encrypted our Private Key, we can deploy safely
forge script <script> --rpc-url <rpc_url> --account <account_name> --sender <address> --broadcast --verify <etherscan_api_key>
To delete the history in zsh
history -p