Skip to content

Commit

Permalink
fix account balance
Browse files Browse the repository at this point in the history
  • Loading branch information
BuddyGlas committed Nov 29, 2024
1 parent eca7f53 commit ee24be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js-packages/scripts/authorizeEnactUpgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const code = await readFile(codePath);
await usingPlaygrounds(async (helper, privateKey) => {
const alice = await privateKey('//Alice');
const hex = blake2AsHex(code);
await helper.getSudo().executeExtrinsic(alice, 'api.tx.balances.forceSetBalance', [ alice.address, 1000000000000000000000000000000000000000000000000n ]);
await helper.getSudo().executeExtrinsic(alice, 'api.tx.balances.forceSetBalance', [ alice.address, 1000000000000000000000000000000n ]);
const balance = await helper.balance.getSubstrate(alice.address);
console.log("Balance:", balance);
await helper.getSudo().executeExtrinsic(alice, 'api.tx.parachainSystem.authorizeUpgrade', [hex, true]);
Expand Down

0 comments on commit ee24be5

Please sign in to comment.