Skip to content

Commit

Permalink
fix: getElectrumClient import
Browse files Browse the repository at this point in the history
  • Loading branch information
DhananjayPurohit committed Jun 4, 2024
1 parent 7e5b3af commit 03401cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clients/apps/nodejs/test_basic_workflow2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion clients/libs/nodejs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,5 +196,6 @@ module.exports = {
withdrawCoin,
newTransferAddress,
transferSend,
transferReceive
transferReceive,
getElectrumClient
};

0 comments on commit 03401cc

Please sign in to comment.