git.delta.rocks / unique-network / refs/commits / e6da5c9ea2b8

difftreelog

test(Polkadex CI) add comment, refactor

PraetorP2023-09-12parent: #7dbcac3.patch.diff
in: master

1 file changed

modifiedtests/src/xcm/xcmUnique.test.tsdiffbeforeafterboth
835 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 added
839 to the whitelist, since an error will occur840 to the whitelist, since an error will occur
840 if it is added again.841 if it is added again. Needed for debugging
842 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 }