From 81748c42f12d32c5ccc0b0c5fb61b17e10909edf Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Wed, 4 Dec 2024 12:28:07 -0800 Subject: [PATCH] Fix sweep signing and document that Ledger is unsupported. --- src/lib/tools.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/tools.ts b/src/lib/tools.ts index 0fa8a7a..69cadcd 100644 --- a/src/lib/tools.ts +++ b/src/lib/tools.ts @@ -90,7 +90,7 @@ export async function sign (key: string, ...input: string[]): Promise { /** * Collects the funds from a specified range of accounts in a wallet and sends -* them all to a single recipient address. +* them all to a single recipient address. Hardware wallets are unsupported. * * @param {Rpc|string|URL} rpc - RPC node information required to refresh accounts, calculate PoW, and process blocks * @param {Blake2bWallet|Bip44Wallet|LedgerWallet} wallet - Wallet from which to sweep funds @@ -127,7 +127,7 @@ export async function sweep (rpc: Rpc | string | URL, wallet: Blake2bWallet | Bi const blockRequest: Promise = new Promise(async (resolve) => { try { await block.pow() - await block.sign(account.index) + await block.sign() const hash = await block.process(rpc) results.push({ status: 'success', address: block.account.address, message: hash }) } catch (err: any) { -- 2.34.1