From 809f8da2fb62c78a343f0292c7ad0de462e33906 Mon Sep 17 00:00:00 2001 From: Marcos Date: Tue, 19 Dec 2023 20:47:58 -0300 Subject: [PATCH] Move publicKeyToCompressed to btc-utils --- lib/btc-utils.js | 1 + lib/utils.js | 1 - tests/05_02_01-last_fork_active_powpeg_redeem_script.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/btc-utils.js b/lib/btc-utils.js index fb43ce44..039a70a3 100644 --- a/lib/btc-utils.js +++ b/lib/btc-utils.js @@ -178,6 +178,7 @@ const waitForBitcoinMempoolToGetTxs = async (btcTxHelper, maxAttempts = 3, check } module.exports = { + publicKeyToCompressed, getBitcoinTransactionsInMempool, waitForBitcoinTxToBeInMempool, waitForBitcoinMempoolToGetTxs diff --git a/lib/utils.js b/lib/utils.js index 6b58f42a..e5357b73 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -144,7 +144,6 @@ module.exports = { getRandomInt, isPromise: utils.isPromise, interval: utils.interval, - publicKeyToCompressed, ensure0x, removePrefix0x, removeDir, diff --git a/tests/05_02_01-last_fork_active_powpeg_redeem_script.js b/tests/05_02_01-last_fork_active_powpeg_redeem_script.js index 8c4fb460..1e0ad81a 100644 --- a/tests/05_02_01-last_fork_active_powpeg_redeem_script.js +++ b/tests/05_02_01-last_fork_active_powpeg_redeem_script.js @@ -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