@skalenetwork/upgrade-tools 3.0.0-linter.2 → 3.0.0-linter.4

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.
@@ -53,7 +53,7 @@ class AutoSubmitter extends submitter_1.Submitter {
53
53
  }
54
54
  else {
55
55
  console.log("Owner is a contract");
56
- if (hardhat_1.ethers.utils.getAddress(owner) == hardhat_1.ethers.utils.getAddress(marionette_1.MARIONETTE_ADDRESS)) {
56
+ if (hardhat_1.ethers.utils.getAddress(owner) === hardhat_1.ethers.utils.getAddress(marionette_1.MARIONETTE_ADDRESS)) {
57
57
  console.log("Marionette owner is detected");
58
58
  const imaInstance = await AutoSubmitter._getImaInstance();
59
59
  const mainnetChainId = AutoSubmitter._getMainnetChainId();
@@ -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
- process.exit(1);
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
- process.exit(1);
132
+ throw Error("Mainnet chainId is not set");
133
133
  }
134
134
  else {
135
135
  return Number.parseInt(process.env.MAINNET_CHAIN_ID);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skalenetwork/upgrade-tools",
3
- "version": "3.0.0-linter.2",
3
+ "version": "3.0.0-linter.4",
4
4
  "description": "Scripts to support upgrades of smart contracts",
5
5
  "files": [
6
6
  "dist/**/*"