git.delta.rocks / unique-network / refs/commits / 797fec697130

difftreelog

Increase the donor balance to 1M

Maksandre2022-10-10parent: #0e23780.patch.diff
in: master

1 file changed

modifiedtests/src/util/playgrounds/feedAlices.tsdiffbeforeafterboth
38 const account = await privateKey({filename: f, ignoreFundsPresence: true});38 const account = await privateKey({filename: f, ignoreFundsPresence: true});
39 const aliceBalance = await helper.balance.getSubstrate(account.address);39 const aliceBalance = await helper.balance.getSubstrate(account.address);
4040
41 if (aliceBalance < 7500n * oneToken) {41 if (aliceBalance < 100_000n * oneToken) {
42 tx.push(helper.executeExtrinsic(42 tx.push(helper.executeExtrinsic(
43 alice, 43 alice,
44 'api.tx.balances.transfer',44 'api.tx.balances.transfer',
45 [account.address, 15000n * oneToken],45 [account.address, 1_000_000n * oneToken],
46 true,46 true,
47 {nonce: nonce + balanceGrantedCounter++},47 {nonce: nonce + balanceGrantedCounter++},
48 ).then(() => true).catch(() => {console.error(`Transaction to ${path.basename(f)} registered as failed. Strange.`); return false;}));48 ).then(() => true).catch(() => {console.error(`Transaction to ${path.basename(f)} registered as failed. Strange.`); return false;}));