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

difftreelog

fix await require pallets

Daniel Shiposha2022-10-14parent: #50109b6.patch.diff
in: master

9 files changed

modifiedtests/src/app-promotion.test.tsdiffbeforeafterboth
36describe('App promotion', () => {36describe('App promotion', () => {
37 before(async function () {37 before(async function () {
38 await usingPlaygrounds(async (helper, privateKey) => {38 await usingPlaygrounds(async (helper, privateKey) => {
39 requirePalletsOrSkip(this, helper, [Pallets.AppPromotion]);39 await requirePalletsOrSkip(this, helper, [Pallets.AppPromotion]);
40 alice = privateKey('//Alice');40 alice = privateKey('//Alice');
41 palletAdmin = privateKey('//Charlie'); // TODO use custom address41 palletAdmin = privateKey('//Charlie'); // TODO use custom address
42 const api = helper.getApi();42 const api = helper.getApi();
modifiedtests/src/eth/createRFTCollection.test.tsdiffbeforeafterboth
2525
26 before(async function() {26 before(async function() {
27 await usingEthPlaygrounds(async (helper, privateKey) => {27 await usingEthPlaygrounds(async (helper, privateKey) => {
28 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);28 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
29 donor = privateKey('//Alice');29 donor = privateKey('//Alice');
30 });30 });
31 });31 });
152152
153 before(async function() {153 before(async function() {
154 await usingEthPlaygrounds(async (helper, privateKey) => {154 await usingEthPlaygrounds(async (helper, privateKey) => {
155 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);155 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
156 donor = privateKey('//Alice');156 donor = privateKey('//Alice');
157 nominal = helper.balance.getOneTokenNominal();157 nominal = helper.balance.getOneTokenNominal();
158 });158 });
modifiedtests/src/eth/fractionalizer/fractionalizer.test.tsdiffbeforeafterboth
8484
85 before(async function() {85 before(async function() {
86 await usingEthPlaygrounds(async (helper: EthUniqueHelper, privateKey) => {86 await usingEthPlaygrounds(async (helper: EthUniqueHelper, privateKey) => {
87 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);87 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
88 donor = privateKey('//Alice');88 donor = privateKey('//Alice');
89 });89 });
90 });90 });
224224
225 before(async function() {225 before(async function() {
226 await usingEthPlaygrounds(async (helper: EthUniqueHelper, privateKey) => {226 await usingEthPlaygrounds(async (helper: EthUniqueHelper, privateKey) => {
227 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);227 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
228 donor = privateKey('//Alice');228 donor = privateKey('//Alice');
229 });229 });
230 });230 });
modifiedtests/src/eth/reFungible.test.tsdiffbeforeafterboth
2323
24 before(async function() {24 before(async function() {
25 await usingEthPlaygrounds(async (helper, privateKey) => {25 await usingEthPlaygrounds(async (helper, privateKey) => {
26 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);26 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
2727
28 donor = privateKey('//Alice');28 donor = privateKey('//Alice');
29 });29 });
115115
116 before(async function() {116 before(async function() {
117 await usingEthPlaygrounds(async (helper, privateKey) => {117 await usingEthPlaygrounds(async (helper, privateKey) => {
118 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);118 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
119119
120 donor = privateKey('//Alice');120 donor = privateKey('//Alice');
121 });121 });
327327
328 before(async function() {328 before(async function() {
329 await usingEthPlaygrounds(async (helper, privateKey) => {329 await usingEthPlaygrounds(async (helper, privateKey) => {
330 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);330 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
331331
332 donor = privateKey('//Alice');332 donor = privateKey('//Alice');
333 });333 });
368368
369 before(async function() {369 before(async function() {
370 await usingEthPlaygrounds(async (helper, privateKey) => {370 await usingEthPlaygrounds(async (helper, privateKey) => {
371 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);371 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
372372
373 donor = privateKey('//Alice');373 donor = privateKey('//Alice');
374 [alice] = await helper.arrange.createAccounts([20n], donor);374 [alice] = await helper.arrange.createAccounts([20n], donor);
modifiedtests/src/eth/reFungibleToken.test.tsdiffbeforeafterboth
2626
27 before(async function() {27 before(async function() {
28 await usingEthPlaygrounds(async (helper, privateKey) => {28 await usingEthPlaygrounds(async (helper, privateKey) => {
29 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);29 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
3030
31 donor = privateKey('//Alice');31 donor = privateKey('//Alice');
32 [alice] = await helper.arrange.createAccounts([20n], donor);32 [alice] = await helper.arrange.createAccounts([20n], donor);
7070
71 before(async function() {71 before(async function() {
72 await usingEthPlaygrounds(async (helper, privateKey) => {72 await usingEthPlaygrounds(async (helper, privateKey) => {
73 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);73 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
7474
75 donor = privateKey('//Alice');75 donor = privateKey('//Alice');
76 });76 });
134134
135 before(async function() {135 before(async function() {
136 await usingEthPlaygrounds(async (helper, privateKey) => {136 await usingEthPlaygrounds(async (helper, privateKey) => {
137 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);137 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
138138
139 donor = privateKey('//Alice');139 donor = privateKey('//Alice');
140 [alice] = await helper.arrange.createAccounts([50n], donor);140 [alice] = await helper.arrange.createAccounts([50n], donor);
325325
326 before(async function() {326 before(async function() {
327 await usingEthPlaygrounds(async (helper, privateKey) => {327 await usingEthPlaygrounds(async (helper, privateKey) => {
328 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);328 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
329329
330 donor = privateKey('//Alice');330 donor = privateKey('//Alice');
331 [alice] = await helper.arrange.createAccounts([50n], donor);331 [alice] = await helper.arrange.createAccounts([50n], donor);
380380
381 before(async function() {381 before(async function() {
382 await usingEthPlaygrounds(async (helper, privateKey) => {382 await usingEthPlaygrounds(async (helper, privateKey) => {
383 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);383 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
384384
385 donor = privateKey('//Alice');385 donor = privateKey('//Alice');
386 [alice] = await helper.arrange.createAccounts([50n], donor);386 [alice] = await helper.arrange.createAccounts([50n], donor);
470470
471 before(async function() {471 before(async function() {
472 await usingEthPlaygrounds(async (helper, privateKey) => {472 await usingEthPlaygrounds(async (helper, privateKey) => {
473 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);473 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
474474
475 donor = privateKey('//Alice');475 donor = privateKey('//Alice');
476 });476 });
modifiedtests/src/eth/util/playgrounds/index.tsdiffbeforeafterboth
48 opts.skip ? it.skip : it)(name, async function() {48 opts.skip ? it.skip : it)(name, async function() {
49 await usingEthPlaygrounds(async (helper, privateKey) => {49 await usingEthPlaygrounds(async (helper, privateKey) => {
50 if (opts.requiredPallets) {50 if (opts.requiredPallets) {
51 requirePalletsOrSkip(this, helper, opts.requiredPallets);51 await requirePalletsOrSkip(this, helper, opts.requiredPallets);
52 }52 }
5353
54 await cb({helper, privateKey});54 await cb({helper, privateKey});
modifiedtests/src/limits.test.tsdiffbeforeafterboth
5858
59 before(async function() {59 before(async function() {
60 await usingPlaygrounds(async (helper, privateKey) => {60 await usingPlaygrounds(async (helper, privateKey) => {
61 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);61 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
6262
63 const donor = privateKey('//Alice');63 const donor = privateKey('//Alice');
64 [alice] = await helper.arrange.createAccounts([10n], donor);64 [alice] = await helper.arrange.createAccounts([10n], donor);
364364
365 before(async function() {365 before(async function() {
366 await usingPlaygrounds(async (helper, privateKey) => {366 await usingPlaygrounds(async (helper, privateKey) => {
367 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);367 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
368368
369 const donor = privateKey('//Alice');369 const donor = privateKey('//Alice');
370 [alice, bob, charlie] = await helper.arrange.createAccounts([10n, 10n, 10n], donor);370 [alice, bob, charlie] = await helper.arrange.createAccounts([10n, 10n, 10n], donor);
modifiedtests/src/nesting/properties.test.tsdiffbeforeafterboth
975975
976 before(async function() {976 before(async function() {
977 await usingPlaygrounds(async (helper, privateKey) => {977 await usingPlaygrounds(async (helper, privateKey) => {
978 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);978 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
979979
980 const donor = privateKey('//Alice');980 const donor = privateKey('//Alice');
981 [alice, bob, charlie] = await helper.arrange.createAccounts([100n, 100n, 100n], donor);981 [alice, bob, charlie] = await helper.arrange.createAccounts([100n, 100n, 100n], donor);
modifiedtests/src/refungible.test.tsdiffbeforeafterboth
2525
26 before(async function() {26 before(async function() {
27 await usingPlaygrounds(async (helper, privateKey) => {27 await usingPlaygrounds(async (helper, privateKey) => {
28 requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);28 await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
2929
30 const donor = privateKey('//Alice');30 const donor = privateKey('//Alice');
31 [alice, bob] = await helper.arrange.createAccounts([100n, 10n], donor);31 [alice, bob] = await helper.arrange.createAccounts([100n, 10n], donor);