From 687a712583c4fbde6447c2c0a24534d5943c130b Mon Sep 17 00:00:00 2001 From: Konstantin Astakhov Date: Wed, 27 Nov 2024 20:14:13 +0700 Subject: [PATCH] print balance before runtime upgrade in workflow --- js-packages/scripts/authorizeEnactUpgrade.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js-packages/scripts/authorizeEnactUpgrade.ts b/js-packages/scripts/authorizeEnactUpgrade.ts index d1b7b80219..191a04d0e0 100644 --- a/js-packages/scripts/authorizeEnactUpgrade.ts +++ b/js-packages/scripts/authorizeEnactUpgrade.ts @@ -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)]); });