deploy.ts 470 B

123456789101112131415161718
  1. import { ethers } from "hardhat";
  2. async function main() {
  3. const CalcTest = await ethers.getContractFactory("CalcTest");
  4. const calc = await CalcTest.deploy();
  5. await calc.deployed();
  6. console.log(`Lock deployed to ${calc.address}`);
  7. //0xA56768f700434321765a373B040c17BBB25eB803
  8. }
  9. // We recommend this pattern to be able to use async/await everywhere
  10. // and properly handle errors.
  11. main().catch((error) => {
  12. console.error(error);
  13. process.exitCode = 1;
  14. });