Skip to content

Commit

Permalink
Using fundRskAccountThroughAPegin
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-then committed Nov 6, 2024
1 parent 4f507e4 commit 1308096
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ const FEE_PER_KB_RESPONSE_CODES = {
SUCCESSFUL_VOTE: 1,
};

const FEE_PER_KB_CHANGE_PK = '6a4b49312b91e203ddfb9bc2d900ebbd46fbede46a7462e770bedcb11ad405e9';
const FEE_PER_KB_CHANGE_ADDR = '53f8f6dabd612b6137215ddd7758bb5cdd638922';

module.exports = {
KEY_TYPE_BTC,
KEY_TYPE_RSK,
Expand Down
5 changes: 1 addition & 4 deletions lib/tests/2wp.js
Original file line number Diff line number Diff line change
Expand Up @@ -856,11 +856,8 @@ const execute = (description, getRskHost) => {

// Arrange

// Create a pegin for the sender to ensure there is enough funds to pegout and because this is the natural process
const senderRecipientInfo = await createSenderRecipientInfo(rskTxHelper, btcTxHelper);
const peginValueInSatoshis = btcToSatoshis(0.5);
const btcPeginTxHash = await sendPegin(rskTxHelper, btcTxHelper, senderRecipientInfo.btcSenderAddressInfo, satoshisToBtc(peginValueInSatoshis));
await ensurePeginIsRegistered(rskTxHelper, btcPeginTxHash);
await fundRskAccountThroughAPegin(rskTxHelper, btcTxHelper, senderRecipientInfo.btcSenderAddressInfo);

const initial2wpBalances = await get2wpBalances(rskTxHelper, btcTxHelper);
const initialSenderAddressBalanceInSatoshis = await getBtcAddressBalanceInSatoshis(btcTxHelper, senderRecipientInfo.btcSenderAddressInfo.address);
Expand Down

0 comments on commit 1308096

Please sign in to comment.