From f414f27b3e69834241d3a2beb738583677ae5bbc Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Wed, 17 Sep 2025 08:07:39 -0700 Subject: [PATCH] Fix map iterator. --- src/lib/wallet/unopened.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/wallet/unopened.ts b/src/lib/wallet/unopened.ts index 6ffaa3b..c2cecdc 100644 --- a/src/lib/wallet/unopened.ts +++ b/src/lib/wallet/unopened.ts @@ -30,9 +30,10 @@ export async function _unopened (wallet: Wallet, rpc: unknown, batchSize: unknow for (const a of addresses) { const value = errors[a] if (value === 'Account not found') { - const account = accounts.values().find(({ address }) => a === address) - if (account !== undefined) { - return account + for (const account of accounts.values()) { + if (a === account.address) { + return account + } } } } -- 2.47.3