--- a/tests/src/xcm/xcmUnique.test.ts +++ b/tests/src/xcm/xcmUnique.test.ts @@ -834,7 +834,11 @@ await usingPolkadexPlaygrounds(polkadexUrl, async (helper) => { 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(!isWhitelisted) { await helper.getSudo().xcmHelper.whitelistToken(alice, uniqueAssetId); }