Skip to content

Commit

Permalink
add verify script
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishang Nadgauda authored and Krishang Nadgauda committed Jun 30, 2022
1 parent 5db8e1a commit b4eedaf
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions scripts/verify.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import hre from "hardhat";

async function main() {
await verify(
"",
[]
)
}

async function verify(address: string, args: any[]) {
try {
return await hre.run("verify:verify", {
address: address,
constructorArguments: args,
});
} catch (e) {
console.log(address, args, e);
}
}

main()
.then(() => process.exit(0))
.catch((e) => {
console.error(e)
process.exit(1)
})

0 comments on commit b4eedaf

Please sign in to comment.