added hardhat verify:verify

This commit is contained in:
pradyuman-verma 2022-03-19 20:20:39 +05:30
parent 5382f3d17c
commit 80fcdec49c
No known key found for this signature in database
GPG Key ID: E36FD6BC8923221F

View File

@ -1,5 +1,5 @@
import { Contract } from "@ethersproject/contracts"; import { Contract } from "@ethersproject/contracts";
import { ethers } from "hardhat"; import hre, { ethers } from "hardhat";
import { Greeter__factory } from "../../typechain"; import { Greeter__factory } from "../../typechain";
@ -9,6 +9,10 @@ async function main(): Promise<void> {
await greeter.deployed(); await greeter.deployed();
console.log("Greeter deployed to: ", greeter.address); console.log("Greeter deployed to: ", greeter.address);
await hre.run("verify:verify", {
address: greeter.address
});
} }
main() main()