mirror of
https://github.com/AtHeartEngineering/bandada.git
synced 2026-01-10 00:18:26 -05:00
26 lines
651 B
TypeScript
26 lines
651 B
TypeScript
import { task, types } from "hardhat/config"
|
|
|
|
task("verify:bandada-semaphore", "Verify a BandadaSemaphore contract")
|
|
.addParam(
|
|
"address",
|
|
"BandadaSemaphore contract address",
|
|
undefined,
|
|
types.string
|
|
)
|
|
.addParam(
|
|
"args",
|
|
"BandadaSemaphore constructor arguments",
|
|
undefined,
|
|
types.json
|
|
)
|
|
.setAction(async ({ address, args }, { run }): Promise<void> => {
|
|
try {
|
|
await run("verify:verify", {
|
|
address,
|
|
constructorArguments: args
|
|
})
|
|
} catch (error) {
|
|
console.error(error)
|
|
}
|
|
})
|