Skip to content

Commit

Permalink
Setting different btc values for the sender accounts for the tests wh…
Browse files Browse the repository at this point in the history
…ere we create multiple accounts to avoid issues of one uxto being used to fund the other account and leaving the first account without funds.
  • Loading branch information
jeremy-then committed Oct 1, 2024
1 parent 8082c93 commit db31332
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/tests/2wp.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ const execute = (description, getRskHost) => {
// Arrange

const initial2wpBalances = await get2wpBalances(rskTxHelper, btcTxHelper);
const senderRecipientInfo1 = await createSenderRecipientInfo(rskTxHelper, btcTxHelper);
const senderRecipientInfo2 = await createSenderRecipientInfo(rskTxHelper, btcTxHelper);
const senderRecipientInfo1 = await createSenderRecipientInfo(rskTxHelper, btcTxHelper, 'legacy', 2);
const senderRecipientInfo2 = await createSenderRecipientInfo(rskTxHelper, btcTxHelper, 'legacy', 1);
const initialSender1AddressBalanceInSatoshis = await getBtcAddressBalanceInSatoshis(btcTxHelper, senderRecipientInfo1.btcSenderAddressInfo.address);
const initialSender2AddressBalanceInSatoshis = await getBtcAddressBalanceInSatoshis(btcTxHelper, senderRecipientInfo2.btcSenderAddressInfo.address);

Expand Down Expand Up @@ -184,8 +184,8 @@ const execute = (description, getRskHost) => {
// Arrange

const initial2wpBalances = await get2wpBalances(rskTxHelper, btcTxHelper);
const senderRecipientInfo1 = await createSenderRecipientInfo(rskTxHelper, btcTxHelper);
const senderRecipientInfo2 = await createSenderRecipientInfo(rskTxHelper, btcTxHelper);
const senderRecipientInfo1 = await createSenderRecipientInfo(rskTxHelper, btcTxHelper, 'legacy', 2);
const senderRecipientInfo2 = await createSenderRecipientInfo(rskTxHelper, btcTxHelper, 'legacy', 1);
const initialSender1AddressBalanceInSatoshis = await getBtcAddressBalanceInSatoshis(btcTxHelper, senderRecipientInfo1.btcSenderAddressInfo.address);
const initialSender2AddressBalanceInSatoshis = await getBtcAddressBalanceInSatoshis(btcTxHelper, senderRecipientInfo2.btcSenderAddressInfo.address);

Expand Down

0 comments on commit db31332

Please sign in to comment.