difftreelog
test(Polkadex CI) add comment, refactor
in: master
1 file changed
tests/src/xcm/xcmUnique.test.tsdiffbeforeafterboth835 const isWhitelisted = ((await helper.callRpc('api.query.xcmHelper.whitelistedTokens', [])).toJSON() as [])835 const isWhitelisted = ((await helper.callRpc('api.query.xcmHelper.whitelistedTokens', []))836 .toJSON() as [])836 .map(nToBigInt).length != 0;837 .map(nToBigInt).length != 0;837 /*838 /*838 Check whether the Unique token has been added839 Check whether the Unique token has been added839 to the whitelist, since an error will occur840 to the whitelist, since an error will occur840 if it is added again.841 if it is added again. Needed for debugging842 when this test is run multiple times.841 */843 */842 if(!isWhitelisted) {844 if(!isWhitelisted) {843 await helper.getSudo().xcmHelper.whitelistToken(alice, uniqueAssetId);845 await helper.getSudo().xcmHelper.whitelistToken(alice, uniqueAssetId);844 }846 }