git.delta.rocks / unique-network / refs/commits / d4a3777c7ace

difftreelog

fix use createAccounts instead of createCrown

Daniel Shiposha2022-12-13parent: #e76bb37.patch.diff
in: master

1 file changed

modifiedtests/src/app-promotion.test.tsdiffbeforeafterboth
37 palletAdmin = await privateKey('//PromotionAdmin');37 palletAdmin = await privateKey('//PromotionAdmin');
38 nominal = helper.balance.getOneTokenNominal();38 nominal = helper.balance.getOneTokenNominal();
39
40 const accountBalances = new Array(100);
41 accountBalances.fill(1000n);
39 accounts = await helper.arrange.createCrowd(100, 1000n, donor); // create accounts-pool to speed up tests42 accounts = await helper.arrange.createAccounts(accountBalances, donor); // create accounts-pool to speed up tests
40 const api = helper.getApi();43 const api = helper.getApi();
41 await helper.executeExtrinsic(alice, 'api.tx.sudo.sudo', [api.tx.configuration.setAppPromotionConfigurationOverride({recalculationInterval: LOCKING_PERIOD, pendingInterval: UNLOCKING_PERIOD})], true);44 await helper.executeExtrinsic(alice, 'api.tx.sudo.sudo', [api.tx.configuration.setAppPromotionConfigurationOverride({recalculationInterval: LOCKING_PERIOD, pendingInterval: UNLOCKING_PERIOD})], true);
42 });45 });