Skip to content

Commit

Permalink
Move publicKeyToCompressed to btc-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
marcos-iov committed Dec 19, 2023
1 parent 0ba501e commit 809f8da
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/btc-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ const waitForBitcoinMempoolToGetTxs = async (btcTxHelper, maxAttempts = 3, check
}

module.exports = {
publicKeyToCompressed,
getBitcoinTransactionsInMempool,
waitForBitcoinTxToBeInMempool,
waitForBitcoinMempoolToGetTxs
Expand Down
1 change: 0 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ module.exports = {
getRandomInt,
isPromise: utils.isPromise,
interval: utils.interval,
publicKeyToCompressed,
ensure0x,
removePrefix0x,
removeDir,
Expand Down
2 changes: 1 addition & 1 deletion tests/05_02_01-last_fork_active_powpeg_redeem_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const {getRskTransactionHelpers} = require('../lib/rsk-tx-helper-provider');
const redeemScriptParser = require('@rsksmart/powpeg-redeemscript-parser');
const CustomError = require('../lib/CustomError');
const removePrefix0x = require('../lib/utils').removePrefix0x;
const publicKeyToCompressed = require('../lib/utils').publicKeyToCompressed;
const publicKeyToCompressed = require('../lib/rsk-utils').publicKeyToCompressed;
const {getBridge, getLatestActiveForkName} = require('../lib/precompiled-abi-forks-util');

// in order to run this as a single test file, it requires a federation change so follow the following command
Expand Down

0 comments on commit 809f8da

Please sign in to comment.