difftreelog
fix await require pallets
in: master
9 files changed
tests/src/app-promotion.test.tsdiffbeforeafterboth--- a/tests/src/app-promotion.test.ts
+++ b/tests/src/app-promotion.test.ts
@@ -36,7 +36,7 @@
describe('App promotion', () => {
before(async function () {
await usingPlaygrounds(async (helper, privateKey) => {
- requirePalletsOrSkip(this, helper, [Pallets.AppPromotion]);
+ await requirePalletsOrSkip(this, helper, [Pallets.AppPromotion]);
alice = privateKey('//Alice');
palletAdmin = privateKey('//Charlie'); // TODO use custom address
const api = helper.getApi();
tests/src/eth/createRFTCollection.test.tsdiffbeforeafterboth--- a/tests/src/eth/createRFTCollection.test.ts
+++ b/tests/src/eth/createRFTCollection.test.ts
@@ -25,7 +25,7 @@
before(async function() {
await usingEthPlaygrounds(async (helper, privateKey) => {
- requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
+ await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
donor = privateKey('//Alice');
});
});
@@ -152,7 +152,7 @@
before(async function() {
await usingEthPlaygrounds(async (helper, privateKey) => {
- requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
+ await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
donor = privateKey('//Alice');
nominal = helper.balance.getOneTokenNominal();
});
tests/src/eth/fractionalizer/fractionalizer.test.tsdiffbeforeafterboth--- a/tests/src/eth/fractionalizer/fractionalizer.test.ts
+++ b/tests/src/eth/fractionalizer/fractionalizer.test.ts
@@ -84,7 +84,7 @@
before(async function() {
await usingEthPlaygrounds(async (helper: EthUniqueHelper, privateKey) => {
- requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
+ await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
donor = privateKey('//Alice');
});
});
@@ -224,7 +224,7 @@
before(async function() {
await usingEthPlaygrounds(async (helper: EthUniqueHelper, privateKey) => {
- requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
+ await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
donor = privateKey('//Alice');
});
});
tests/src/eth/reFungible.test.tsdiffbeforeafterboth--- a/tests/src/eth/reFungible.test.ts
+++ b/tests/src/eth/reFungible.test.ts
@@ -23,7 +23,7 @@
before(async function() {
await usingEthPlaygrounds(async (helper, privateKey) => {
- requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
+ await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
donor = privateKey('//Alice');
});
@@ -115,7 +115,7 @@
before(async function() {
await usingEthPlaygrounds(async (helper, privateKey) => {
- requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
+ await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
donor = privateKey('//Alice');
});
@@ -327,7 +327,7 @@
before(async function() {
await usingEthPlaygrounds(async (helper, privateKey) => {
- requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
+ await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
donor = privateKey('//Alice');
});
@@ -368,7 +368,7 @@
before(async function() {
await usingEthPlaygrounds(async (helper, privateKey) => {
- requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
+ await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
donor = privateKey('//Alice');
[alice] = await helper.arrange.createAccounts([20n], donor);
tests/src/eth/reFungibleToken.test.tsdiffbeforeafterboth262627 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]);303031 donor = privateKey('//Alice');31 donor = privateKey('//Alice');32 [alice] = await helper.arrange.createAccounts([20n], donor);32 [alice] = await helper.arrange.createAccounts([20n], donor);707071 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]);747475 donor = privateKey('//Alice');75 donor = privateKey('//Alice');76 });76 });134134135 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]);138138139 donor = privateKey('//Alice');139 donor = privateKey('//Alice');140 [alice] = await helper.arrange.createAccounts([50n], donor);140 [alice] = await helper.arrange.createAccounts([50n], donor);325325326 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]);329329330 donor = privateKey('//Alice');330 donor = privateKey('//Alice');331 [alice] = await helper.arrange.createAccounts([50n], donor);331 [alice] = await helper.arrange.createAccounts([50n], donor);380380381 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]);384384385 donor = privateKey('//Alice');385 donor = privateKey('//Alice');386 [alice] = await helper.arrange.createAccounts([50n], donor);386 [alice] = await helper.arrange.createAccounts([50n], donor);470470471 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]);474474475 donor = privateKey('//Alice');475 donor = privateKey('//Alice');476 });476 });tests/src/eth/util/playgrounds/index.tsdiffbeforeafterboth--- a/tests/src/eth/util/playgrounds/index.ts
+++ b/tests/src/eth/util/playgrounds/index.ts
@@ -48,7 +48,7 @@
opts.skip ? it.skip : it)(name, async function() {
await usingEthPlaygrounds(async (helper, privateKey) => {
if (opts.requiredPallets) {
- requirePalletsOrSkip(this, helper, opts.requiredPallets);
+ await requirePalletsOrSkip(this, helper, opts.requiredPallets);
}
await cb({helper, privateKey});
tests/src/limits.test.tsdiffbeforeafterboth--- a/tests/src/limits.test.ts
+++ b/tests/src/limits.test.ts
@@ -58,7 +58,7 @@
before(async function() {
await usingPlaygrounds(async (helper, privateKey) => {
- requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
+ await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
const donor = privateKey('//Alice');
[alice] = await helper.arrange.createAccounts([10n], donor);
@@ -364,7 +364,7 @@
before(async function() {
await usingPlaygrounds(async (helper, privateKey) => {
- requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
+ await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
const donor = privateKey('//Alice');
[alice, bob, charlie] = await helper.arrange.createAccounts([10n, 10n, 10n], donor);
tests/src/nesting/properties.test.tsdiffbeforeafterboth--- a/tests/src/nesting/properties.test.ts
+++ b/tests/src/nesting/properties.test.ts
@@ -975,7 +975,7 @@
before(async function() {
await usingPlaygrounds(async (helper, privateKey) => {
- requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
+ await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
const donor = privateKey('//Alice');
[alice, bob, charlie] = await helper.arrange.createAccounts([100n, 100n, 100n], donor);
tests/src/refungible.test.tsdiffbeforeafterboth--- a/tests/src/refungible.test.ts
+++ b/tests/src/refungible.test.ts
@@ -25,7 +25,7 @@
before(async function() {
await usingPlaygrounds(async (helper, privateKey) => {
- requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
+ await requirePalletsOrSkip(this, helper, [Pallets.ReFungible]);
const donor = privateKey('//Alice');
[alice, bob] = await helper.arrange.createAccounts([100n, 10n], donor);