Skip to content

Commit

Permalink
assertion update, adding some semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Pikora authored and Jan Pikora committed Sep 29, 2023
1 parent 58e0569 commit 2f25bd4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/2wp-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions tests/02_00_02-2wp_segwit_compatible.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/02_00_06-2wp-new-minimum.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2f25bd4

Please sign in to comment.