diff --git a/lib/constants.js b/lib/constants.js index 07b7f734..6c4e5238 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -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, diff --git a/lib/tests/2wp.js b/lib/tests/2wp.js index a287fd3e..d01d82eb 100644 --- a/lib/tests/2wp.js +++ b/lib/tests/2wp.js @@ -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);