From: Chris Duncan Date: Wed, 4 Dec 2024 20:28:07 +0000 (-0800) Subject: Fix sweep signing and document that Ledger is unsupported. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=81748c42f12d32c5ccc0b0c5fb61b17e10909edf;p=libnemo.git Fix sweep signing and document that Ledger is unsupported. --- 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) {