Foundry - Deploying Contracts
Learn how to deploy smart contracts on Abstract using Foundry.
Deploying Contracts
Add your deployer wallet's private key
Create a new wallet keystore to securely store your deployer account’s private key.
Enter your wallet’s private key when prompted and provide a password to encrypt it.
Deploy your smart contract
Run the following command to deploy your smart contracts:
Note: Replace the contract path and Etherscan API key with your own.
If successful, the output should look similar to the following:
Providing Constructor Arguments
If your smart contract has a constructor with arguments, provide the arguments in the order they are defined in the constructor following the --constructor-args
flag.
Note: Replace the contract path, constructor arguments, and Abscan API key with your own.
Was this page helpful?