Deploy Contract


Deploy Contract

Hardhat

  • To deploy a contract from the Hardhat console:
Greeter = await ethers.getContractFactory("Greeter")
greeter = await Greeter.deploy("Greeter from hardhat")
console.log(`Contract address: ${greeter.address}`)
await greeter.greet()