Deploy with Hardhat
Prerequisites
Edit the deployment script
async function main() {
const Counter = await ethers.getContractFactory('Counter');
const counter = await Counter.deploy({
gasPrice: 160e6,
gasLimit: 2e6,
});
await counter.waitForDeployment();
const address = await counter.getAddress();
console.log('Counter smart contract deployed to:', address);
}Run the deployment script
Next steps
Last updated
