@skalenetwork/upgrade-tools 3.0.0-skale-contracts.3 → 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.
- package/dist/src/upgrader.js +4 -1
- package/package.json +1 -1
package/dist/src/upgrader.js
CHANGED
|
@@ -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
|
-
|
|
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);
|