Skip to content

Commit

Permalink
Updated versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrylR committed Oct 31, 2023
1 parent a5e24de commit dcb49f0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 4 additions & 0 deletions src/tools/reporters/Reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;

Expand Down
5 changes: 5 additions & 0 deletions src/verifier/Verifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dcb49f0

Please sign in to comment.