diff --git a/lib/tests/2wp.js b/lib/tests/2wp.js index 84f7603b..fc252f92 100644 --- a/lib/tests/2wp.js +++ b/lib/tests/2wp.js @@ -107,7 +107,7 @@ const execute = (description, getRskHost) => { expect(finalSenderAddressBalanceInSatoshis).to.be.equal(initialSenderAddressBalanceInSatoshis - peginValueInSatoshis - btcFeeInSatoshis); // The recipient rsk address balance is increased by the pegin value - const finalRskRecipientBalanceInWeisBN = Number(await rskTxHelper.getBalance(senderRecipientInfo.rskRecipientRskAddressInfo.address)); + const finalRskRecipientBalanceInWeisBN = await rskTxHelper.getBalance(senderRecipientInfo.rskRecipientRskAddressInfo.address); const expectedRskRecipientBalancesInWeisBN = rskTxHelper.getClient().utils.BN(satoshisToWeis(peginValueInSatoshis)); expect(finalRskRecipientBalanceInWeisBN.eq(expectedRskRecipientBalancesInWeisBN)).to.be.true;