diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 0cc44e9..99f98ef 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -23,7 +23,6 @@ module.exports = { "never" ], - "id-length": "warn", "init-declarations": "warn", "line-comment-position": "warn", "lines-around-comment": "warn", diff --git a/src/verification.ts b/src/verification.ts index a589248..d5de72f 100644 --- a/src/verification.ts +++ b/src/verification.ts @@ -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 ); } }