Skip to content

Commit

Permalink
print balance before runtime upgrade in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BuddyGlas committed Nov 27, 2024
1 parent 61b9df5 commit 687a712
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js-packages/scripts/authorizeEnactUpgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const code = await readFile(codePath);
await usingPlaygrounds(async (helper, privateKey) => {
const alice = await privateKey('//Alice');
const hex = blake2AsHex(code);
const balance = await helper.balance.getSubstrate(alice.address);
console.log("Balance:", balance);
await helper.getSudo().executeExtrinsic(alice, 'api.tx.parachainSystem.authorizeUpgrade', [hex, true]);
await helper.getSudo().executeExtrinsicUncheckedWeight(alice, 'api.tx.parachainSystem.enactAuthorizedUpgrade', [u8aToHex(code)]);
});
Expand Down

0 comments on commit 687a712

Please sign in to comment.