diff --git a/lib/2wp-utils.js b/lib/2wp-utils.js index 76a88880..6c6dba11 100644 --- a/lib/2wp-utils.js +++ b/lib/2wp-utils.js @@ -250,7 +250,7 @@ const disableWhitelisting = async (rskTxHelper, btcTxHelper) => { const latestActiveForkName = await getLatestActiveForkName(); const bridge = getBridge(rskTxHelper.getClient(), latestActiveForkName); - const whitelistChangeAddress = await rskTxHelper.importAccount(WHITELIST_CHANGE_PK) + const whitelistChangeAddress = await rskTxHelper.importAccount(WHITELIST_CHANGE_PK); expect(whitelistChangeAddress.slice(2)).to.equal(WHITELIST_CHANGE_ADDR); await rskTxHelper.unlockAccount(whitelistChangeAddress); diff --git a/tests/02_00_02-2wp_segwit_compatible.js b/tests/02_00_02-2wp_segwit_compatible.js index ff2d9690..12a0670c 100644 --- a/tests/02_00_02-2wp_segwit_compatible.js +++ b/tests/02_00_02-2wp_segwit_compatible.js @@ -12,9 +12,9 @@ let rskTxHelper; let btcTxHelper; const fulfillRequirementsToRunAsSingleTestFile = async (rskTxHelper, btcTxHelper) => { - const latestForkName = rskUtils.getLatestForkName() + const latestForkName = rskUtils.getLatestForkName(); await rskUtils.activateFork(latestForkName); - await disableWhitelisting(rskTxHelper, btcTxHelper) + await disableWhitelisting(rskTxHelper, btcTxHelper); }; describe('Lock using p2sh-p2wpkh address', () => { diff --git a/tests/02_00_06-2wp-new-minimum.js b/tests/02_00_06-2wp-new-minimum.js index 844d1180..894877d6 100644 --- a/tests/02_00_06-2wp-new-minimum.js +++ b/tests/02_00_06-2wp-new-minimum.js @@ -102,7 +102,7 @@ describe('2wp after iris300, using new minimum values', () => { expect(senderAddressBalanceFinal).to.be.equal(0); const federationAddressBalanceFinal = Number(await btcTxHelper.getAddressBalance(federationAddress)); - expect(federationAddressBalanceFinal).to.be.equal(Number(federationAddressBalanceInitial + BELOW_MIN_PEGIN_VALUE_IN_BTC)); + expect(btcEthUnitConverter.btcToSatoshis(federationAddressBalanceFinal)).to.be.equal(btcEthUnitConverter.btcToSatoshis(federationAddressBalanceInitial + BELOW_MIN_PEGIN_VALUE_IN_BTC)); const bridgeAddressBalanceFinal = Number(await rskTxHelper.getBalance(BRIDGE_ADDRESS)); expect(bridgeAddressBalanceFinal).to.be.equal(bridgeAddressBalanceInitial)