diff options
| author | Adam Soltys <[email protected]> | 2026-02-28 15:16:20 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-28 15:16:20 -0800 |
| commit | 32f01e3e328db0006a55c6324625b49d60244b66 (patch) | |
| tree | b97866549b919964957365e1e05681e85af7021a /lib/esplora.ts | |
| parent | a1632ae402d11fdd7ffc360de97c55e0b4fad677 (diff) | |
| download | coinos-server-32f01e3e328db0006a55c6324625b49d60244b66.tar.gz coinos-server-32f01e3e328db0006a55c6324625b49d60244b66.zip | |
fix typescript issues
Diffstat (limited to 'lib/esplora.ts')
| -rw-r--r-- | lib/esplora.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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; }; |
