Learn how to deploy smart contracts on Abstract using Hardhat.
Install zksync-ethers
Set the deployer account private key
DEPLOYER_PRIVATE_KEY
.Write the deployment script
/deploy/deploy.ts
:deploy.ts
file:Deploy your smart contract
deploy
function is an array of constructor arguments.
To deploy your smart contract with constructor arguments, provide an array containing your constructor arguments as the second argument to the deploy
function.
deploymentType
parameter: