Skip to content

Commit

Permalink
tasks: Fix verify to allow not specifying contracts
Browse files Browse the repository at this point in the history
Turns out variadic still needs to be optional
  • Loading branch information
victorges committed Oct 11, 2023
1 parent 021ae03 commit aa55b8a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tasks/etherscan-verify-deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ task(
"etherscan-verify-deployments",
"Verifies all contracts in the deployments folder"
)
.addVariadicPositionalParam("contracts", "List of contracts to verify")
.addOptionalVariadicPositionalParam(
"contracts",
"List of contracts to verify"
)
.setAction(async (taskArgs, hre) => {
const etherscan = await etherscanClient(hre)
let deployments = Object.entries(await hre.deployments.all())
Expand Down

0 comments on commit aa55b8a

Please sign in to comment.