diff --git a/package.json b/package.json index 81e397e8..87ffd652 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@solarity/hardhat-migrate", - "version": "2.0.0-alpha.9", + "version": "2.0.0-alpha.10", "description": "Automatic deployment and verification of smart contracts", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", diff --git a/src/tools/reporters/Reporter.ts b/src/tools/reporters/Reporter.ts index 2d3355a3..55bba6ec 100644 --- a/src/tools/reporters/Reporter.ts +++ b/src/tools/reporters/Reporter.ts @@ -129,6 +129,10 @@ export class Reporter { console.log("\nStarting verification of all deployed contracts\n"); } + public static reportNothingToVerify() { + console.log("\nNothing to verify\n"); + } + public static reportSuccessfulVerification(contractAddress: string, contractName: string) { const output = `\nContract ${contractName} (${contractAddress}) verified successfully.\n`; diff --git a/src/verifier/Verifier.ts b/src/verifier/Verifier.ts index 0cdaf4e8..07e15b6c 100644 --- a/src/verifier/Verifier.ts +++ b/src/verifier/Verifier.ts @@ -52,6 +52,11 @@ export class Verifier { @catchError public async verifyBatch(verifierBatchArgs: VerifierArgs[]) { + if (verifierBatchArgs.length === 0) { + Reporter.reportNothingToVerify(); + return; + } + Reporter.reportVerificationBatchBegin(); const parallel = this._config.parallel;