From e8822f137d5427370f5b00f0a343b24cc5794644 Mon Sep 17 00:00:00 2001 From: Alexander Aksenov Date: Fri, 16 Sep 2022 13:17:17 +0000 Subject: [PATCH] Merge branch 'test/app-promotion-refactor' of github.com:UniqueNetwork/unique-chain into test/app-promotion-refactor --- --- a/tests/src/adminTransferAndBurn.test.ts +++ b/tests/src/adminTransferAndBurn.test.ts @@ -24,19 +24,14 @@ let donor: IKeyringPair; -before(async () => { - await usingPlaygrounds(async (_, privateKey) => { - donor = privateKey('//Alice'); - }); -}); - describe('Integration Test: ownerCanTransfer allows admins to use only transferFrom/burnFrom:', () => { let alice: IKeyringPair; let bob: IKeyringPair; let charlie: IKeyringPair; before(async () => { - await usingPlaygrounds(async (helper) => { + await usingPlaygrounds(async (helper, privateKey) => { + donor = privateKey('//Alice'); [alice, bob, charlie] = await helper.arrange.createAccounts([10n, 10n, 10n], donor); }); }); --- a/tests/src/allowLists.test.ts +++ b/tests/src/allowLists.test.ts @@ -24,12 +24,6 @@ let donor: IKeyringPair; -before(async () => { - await usingPlaygrounds(async (_, privateKey) => { - donor = privateKey('//Alice'); - }); -}); - let alice: IKeyringPair; let bob: IKeyringPair; let charlie: IKeyringPair; @@ -37,7 +31,8 @@ describe('Integration Test ext. Allow list tests', () => { before(async () => { - await usingPlaygrounds(async (helper) => { + await usingPlaygrounds(async (helper, privateKey) => { + donor = privateKey('//Alice'); [alice, bob, charlie] = await helper.arrange.createAccounts([100n, 100n, 100n], donor); }); }); -- gitstuff