From 3a9f1dcde92c27bc6b487f0cad7b03e7af51f074 Mon Sep 17 00:00:00 2001 From: ericxstone Date: Thu, 30 Dec 2021 11:20:58 +0800 Subject: [PATCH] Update CLI parameter --- src/tasks/blockscout-verify.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tasks/blockscout-verify.ts b/src/tasks/blockscout-verify.ts index debe3ac..20bb9a5 100644 --- a/src/tasks/blockscout-verify.ts +++ b/src/tasks/blockscout-verify.ts @@ -1,4 +1,4 @@ -import { task } from "hardhat/config"; +import { task, types } from "hardhat/config"; import { NomicLabsHardhatPluginError } from "hardhat/plugins"; import { HardhatConfig, @@ -9,8 +9,8 @@ import fetch from "node-fetch"; import path from "path"; task("blockscout-verify") - .addParam("filePath", "File path to the contract") - .addParam("address", "Deployed contract address") + .addPositionalParam("filePath", "File path to the contract", types.string) + .addPositionalParam("address", "Deployed contract address", types.string) .setAction(async function ( args: TaskArguments, hre: HardhatRuntimeEnvironment