@skalenetwork/upgrade-tools 3.0.0-linter.23 → 3.0.0-linter.24

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.
@@ -134,8 +134,9 @@ class AutoSubmitter extends submitter_1.Submitter {
134
134
  throw Error("Schain is not set");
135
135
  }
136
136
  static getMainnetChainId() {
137
+ const CHAIN_ID_RADIX = 10;
137
138
  if (process.env.MAINNET_CHAIN_ID) {
138
- return Number.parseInt(process.env.MAINNET_CHAIN_ID);
139
+ return Number.parseInt(process.env.MAINNET_CHAIN_ID, CHAIN_ID_RADIX);
139
140
  }
140
141
  console.log(chalk_1.default.red("Set chainId of mainnet" +
141
142
  " to MAINNET_CHAIN_ID environment variable"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skalenetwork/upgrade-tools",
3
- "version": "3.0.0-linter.23",
3
+ "version": "3.0.0-linter.24",
4
4
  "description": "Scripts to support upgrades of smart contracts",
5
5
  "files": [
6
6
  "dist/**/*"