From d4a3777c7acea127994f96ad423619194ff3bd23 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Tue, 13 Dec 2022 16:31:39 +0000 Subject: [PATCH] fix: use createAccounts instead of createCrown --- --- a/tests/src/app-promotion.test.ts +++ b/tests/src/app-promotion.test.ts @@ -36,7 +36,10 @@ palletAddress = helper.arrange.calculatePalletAddress('appstake'); palletAdmin = await privateKey('//PromotionAdmin'); nominal = helper.balance.getOneTokenNominal(); - accounts = await helper.arrange.createCrowd(100, 1000n, donor); // create accounts-pool to speed up tests + + const accountBalances = new Array(100); + accountBalances.fill(1000n); + accounts = await helper.arrange.createAccounts(accountBalances, donor); // create accounts-pool to speed up tests const api = helper.getApi(); await helper.executeExtrinsic(alice, 'api.tx.sudo.sudo', [api.tx.configuration.setAppPromotionConfigurationOverride({recalculationInterval: LOCKING_PERIOD, pendingInterval: UNLOCKING_PERIOD})], true); }); -- gitstuff