difftreelog
fix await require pallets
in: master
9 files changed
tests/src/app-promotion.test.tsdiffbeforeafterboth36describe('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 address42 const api = helper.getApi();42 const api = helper.getApi();tests/src/eth/createRFTCollection.test.tsdiffbeforeafterboth252526 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 });152152153 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 });tests/src/eth/fractionalizer/fractionalizer.test.tsdiffbeforeafterboth848485 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 });224224225 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 });tests/src/eth/reFungible.test.tsdiffbeforeafterboth232324 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]);272728 donor = privateKey('//Alice');28 donor = privateKey('//Alice');29 });29 });115115116 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]);119119120 donor = privateKey('//Alice');120 donor = privateKey('//Alice');121 });121 });327327328 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]);331331332 donor = privateKey('//Alice');332 donor = privateKey('//Alice');333 });333 });368368369 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]);372372373 donor = privateKey('//Alice');373 donor = privateKey('//Alice');374 [alice] = await helper.arrange.createAccounts([20n], donor);374 [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.tsdiffbeforeafterboth48 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 }535354 await cb({helper, privateKey});54 await cb({helper, privateKey});tests/src/limits.test.tsdiffbeforeafterboth585859 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]);626263 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);364364365 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]);368368369 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);tests/src/nesting/properties.test.tsdiffbeforeafterboth975975976 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]);979979980 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);tests/src/refungible.test.tsdiffbeforeafterboth252526 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]);292930 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);