From b75652834f3265bb9bb2e867e83f7266238be917 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Wed, 21 Dec 2022 16:51:28 +0000 Subject: [PATCH] fix: opal xcm logs in test --- --- a/tests/src/xcm/xcmOpal.test.ts +++ b/tests/src/xcm/xcmOpal.test.ts @@ -225,18 +225,19 @@ balanceOpalAfter = await helper.balance.getSubstrate(alice.address); - // commission has not paid in USDT token - expect(free == TRANSFER_AMOUNT).to.be.true; console.log( 'Opal to Westmint transaction fees on Opal: %s USDT', - helper.util.bigIntToDecimals(TRANSFER_AMOUNT - free), + helper.util.bigIntToDecimals(TRANSFER_AMOUNT - free, ASSET_METADATA_DECIMALS), + ); + console.log( + 'Opal to Westmint transaction fees on Opal: %s OPL', + helper.util.bigIntToDecimals(balanceOpalAfter - balanceOpalBefore), ); + + // commission has not paid in USDT token + expect(free == TRANSFER_AMOUNT).to.be.true; // ... and parachain native token expect(balanceOpalAfter == balanceOpalBefore).to.be.true; - console.log( - 'Opal to Westmint transaction fees on Opal: %s WND', - helper.util.bigIntToDecimals(balanceOpalAfter - balanceOpalBefore, WESTMINT_DECIMALS), - ); }); itSub('Should connect and send USDT from Unique to Statemine back', async ({helper}) => { -- gitstuff