Skip to content

Commit

Permalink
debug release version
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezs committed Jan 11, 2024
1 parent d6c111d commit 64cdf76
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bouncer/shared/submit_runtime_upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export async function submitRuntimeUpgradeWithRestrictions(
versionPercentRestriction = undefined;
}

let currentReleaseVersion = await chainflip.query.environment.CurrentReleaseVersion();
console.log("CurrentReleaseVersion before: ", currentReleaseVersion.toString());

console.log('Submitting runtime upgrade.');
await submitGovernanceExtrinsic(
chainflip.tx.governance.chainflipRuntimeUpgrade(versionPercentRestriction, runtimeWasm),
Expand All @@ -53,6 +56,9 @@ export async function submitRuntimeUpgradeWithRestrictions(
throw Error(`Runtime upgrade failed with error: ${event.data}`);
}

currentReleaseVersion = await chainflip.query.environment.CurrentReleaseVersion();
console.log("CurrentReleaseVersion after: ", currentReleaseVersion.toString());

console.log('Runtime upgrade completed.');
}

Expand Down

0 comments on commit 64cdf76

Please sign in to comment.