Skip to content

Commit

Permalink
Use long identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaStebaev committed Sep 13, 2023
1 parent ed9477e commit 8a0dea2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ module.exports = {
"never"
],

"id-length": "warn",
"init-declarations": "warn",
"line-comment-position": "warn",
"lines-around-comment": "warn",
Expand Down
10 changes: 5 additions & 5 deletions src/verification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ export const verify = async (contractName: string, contractAddress: string, cons
}
);
break;
} catch (e) {
if (e instanceof Error) {
if (e.toString().includes("Contract source code already verified")) {
} catch (error) {
if (error instanceof Error) {
if (error.toString().includes("Contract source code already verified")) {
console.log(chalk.grey(`${contractName} is already verified`));
return;
}
console.log(chalk.red(`Contract ${contractName} was not verified on etherscan`));
console.log(e.toString());
console.log(error.toString());
} else {
console.log(
"Unknown exception type:",
e
error
);
}
}
Expand Down

0 comments on commit 8a0dea2

Please sign in to comment.