From e6da5c9ea2b864b18c4b0e241607df7a5ad4ae45 Mon Sep 17 00:00:00 2001 From: PraetorP Date: Tue, 12 Sep 2023 03:25:51 +0000 Subject: [PATCH] test(Polkadex CI): add comment, refactor --- --- a/tests/src/xcm/xcmUnique.test.ts +++ b/tests/src/xcm/xcmUnique.test.ts @@ -832,12 +832,14 @@ }); await usingPolkadexPlaygrounds(polkadexUrl, async (helper) => { - const isWhitelisted = ((await helper.callRpc('api.query.xcmHelper.whitelistedTokens', [])).toJSON() as []) + const isWhitelisted = ((await helper.callRpc('api.query.xcmHelper.whitelistedTokens', [])) + .toJSON() as []) .map(nToBigInt).length != 0; /* Check whether the Unique token has been added to the whitelist, since an error will occur - if it is added again. + if it is added again. Needed for debugging + when this test is run multiple times. */ if(!isWhitelisted) { await helper.getSudo().xcmHelper.whitelistToken(alice, uniqueAssetId); -- gitstuff