@skalenetwork/upgrade-tools 3.0.0-skale-contracts.2 → 3.0.0-skale-contracts.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.
@@ -29,9 +29,12 @@ class Upgrader {
29
29
  // public
30
30
  async upgrade() {
31
31
  const proxyAdmin = await (0, admin_1.getManifestAdmin)(hardhat_1.default);
32
- const deployedVersion = await this.getDeployedVersion();
32
+ let deployedVersion = await this.getDeployedVersion();
33
33
  const version = await (0, version_1.getVersion)();
34
34
  if (deployedVersion) {
35
+ if (!deployedVersion.includes('-')) {
36
+ deployedVersion = deployedVersion + '-stable.0';
37
+ }
35
38
  if (deployedVersion !== this.targetVersion) {
36
39
  console.log(chalk_1.default.red(`This script can't upgrade version ${deployedVersion} to ${version}`));
37
40
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skalenetwork/upgrade-tools",
3
- "version": "3.0.0-skale-contracts.2",
3
+ "version": "3.0.0-skale-contracts.4",
4
4
  "description": "Scripts to support upgrades of smart contracts",
5
5
  "files": [
6
6
  "dist/**/*"
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@openzeppelin/contracts-upgradeable": "^4.4.2",
43
- "@skalenetwork/skale-contracts": "^0.0.1-main.18",
43
+ "@skalenetwork/skale-contracts": "^0.0.1-main.19",
44
44
  "axios": "^0.27.2",
45
45
  "ethereumjs-util": "^7.1.4"
46
46
  },