@skalenetwork/upgrade-tools 3.0.0-linter.5 → 3.0.0-linter.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/verification.js +5 -5
- package/package.json +1 -1
package/dist/src/verification.js
CHANGED
|
@@ -19,17 +19,17 @@ const verify = async (contractName, contractAddress, constructorArguments) => {
|
|
|
19
19
|
});
|
|
20
20
|
break;
|
|
21
21
|
}
|
|
22
|
-
catch (
|
|
23
|
-
if (
|
|
24
|
-
if (
|
|
22
|
+
catch (error) {
|
|
23
|
+
if (error instanceof Error) {
|
|
24
|
+
if (error.toString().includes("Contract source code already verified")) {
|
|
25
25
|
console.log(chalk_1.default.grey(`${contractName} is already verified`));
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
console.log(chalk_1.default.red(`Contract ${contractName} was not verified on etherscan`));
|
|
29
|
-
console.log(
|
|
29
|
+
console.log(error.toString());
|
|
30
30
|
}
|
|
31
31
|
else {
|
|
32
|
-
console.log("Unknown exception type:",
|
|
32
|
+
console.log("Unknown exception type:", error);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}
|