@skalenetwork/upgrade-tools 3.0.0-linter.2 → 3.0.0-linter.3
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.
|
@@ -115,7 +115,7 @@ class AutoSubmitter extends submitter_1.Submitter {
|
|
|
115
115
|
if (!process.env.SCHAIN_NAME) {
|
|
116
116
|
console.log(chalk_1.default.red("Set schain name to SCHAIN_NAME environment variable"));
|
|
117
117
|
console.log(chalk_1.default.red("or schain hash to SCHAIN_HASH environment variable"));
|
|
118
|
-
|
|
118
|
+
throw Error("Schain is not set");
|
|
119
119
|
}
|
|
120
120
|
else {
|
|
121
121
|
return hardhat_1.ethers.utils.solidityKeccak256(["string"], [process.env.SCHAIN_NAME]);
|
|
@@ -129,7 +129,7 @@ class AutoSubmitter extends submitter_1.Submitter {
|
|
|
129
129
|
if (!process.env.MAINNET_CHAIN_ID) {
|
|
130
130
|
console.log(chalk_1.default.red("Set chainId of mainnet to MAINNET_CHAIN_ID environment variable"));
|
|
131
131
|
console.log(chalk_1.default.red("Use 1 for Ethereum mainnet or 5 for Goerli"));
|
|
132
|
-
|
|
132
|
+
throw Error("Mainnet chainId is not set");
|
|
133
133
|
}
|
|
134
134
|
else {
|
|
135
135
|
return Number.parseInt(process.env.MAINNET_CHAIN_ID);
|