From eb6763533618cefb5c589c60a2a9762ff46b081f Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 9 Aug 2026 23:25:00 -0700 Subject: [PATCH] Fix default account range end. --- src/lib/wallet/accounts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/wallet/accounts.ts b/src/lib/wallet/accounts.ts index 58b36be..69614e5 100644 --- a/src/lib/wallet/accounts.ts +++ b/src/lib/wallet/accounts.ts @@ -11,7 +11,7 @@ export async function _accounts (type: WalletType, accounts: Map, vault: Vault, from: number, to: number): Promise> export async function _accounts (type: WalletType, accounts: Map, vault: Vault, from: unknown, to?: unknown): Promise> { const isSingle = to === undefined - to ??= from + to ??= from + 1 if (typeof from !== 'number') { throw new Error('Invalid account range start argument', { cause: `${typeof from} ${from}` }) } -- 2.52.0