From 03401cc857c97dca93e963efa08e8ef20360ad40 Mon Sep 17 00:00:00 2001 From: DhananjayPurohit Date: Tue, 4 Jun 2024 21:31:32 +0530 Subject: [PATCH] fix: getElectrumClient import --- clients/apps/nodejs/test_basic_workflow2.js | 2 +- clients/libs/nodejs/index.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/clients/apps/nodejs/test_basic_workflow2.js b/clients/apps/nodejs/test_basic_workflow2.js index 1a02c14e..440f8639 100644 --- a/clients/apps/nodejs/test_basic_workflow2.js +++ b/clients/apps/nodejs/test_basic_workflow2.js @@ -164,7 +164,7 @@ async function walletTransfersToItselfTillLocktimeReachesBlockHeightAndWithdraw( console.log("coin: ", coin); - const electrumClient = await getElectrumClient(clientConfig); + const electrumClient = await mercurynodejslib.getElectrumClient(clientConfig); let block_header = await electrumClient.request('blockchain.headers.subscribe'); let currentBlockHeight = block_header.height; diff --git a/clients/libs/nodejs/index.js b/clients/libs/nodejs/index.js index 180cb912..f1813be3 100644 --- a/clients/libs/nodejs/index.js +++ b/clients/libs/nodejs/index.js @@ -196,5 +196,6 @@ module.exports = { withdrawCoin, newTransferAddress, transferSend, - transferReceive + transferReceive, + getElectrumClient }; \ No newline at end of file