From 32f01e3e328db0006a55c6324625b49d60244b66 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 28 Feb 2026 15:16:20 -0800 Subject: fix typescript issues --- lib/esplora.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/esplora.ts') diff --git a/lib/esplora.ts b/lib/esplora.ts index d92fad0c..a2db8100 100644 --- a/lib/esplora.ts +++ b/lib/esplora.ts @@ -37,7 +37,7 @@ export const getAddressUtxos = async (addresses: string[]) => { const results = []; for (const address of addresses) { const utxos = await getUtxos(address); - for (const u of utxos) { + for (const u of utxos as any) { u.address = address; results.push(u); } @@ -98,7 +98,7 @@ const hdVersionsForKey = (pubkey: string) => { export const deriveAddress = ( pubkey: string, - fingerprint: string, + _fingerprint: string, index: number, internal = false, ) => { @@ -140,7 +140,7 @@ export const findLastUsedIndex = async (pubkey: string, fingerprint: string, max for (let i = 0; i < maxScan; i++) { const { address } = deriveAddress(pubkey, fingerprint, i, false); const txs = await getAddressTxs(address); - if (txs.length > 0) lastUsed = i; + if ((txs as any).length > 0) lastUsed = i; } return lastUsed + 1; }; -- cgit v1.2.3