From: Chris Duncan Date: Mon, 10 Aug 2026 06:25:00 +0000 (-0700) Subject: Fix default account range end. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=eb6763533618cefb5c589c60a2a9762ff46b081f;p=libnemo.git Fix default account range end. --- 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}` }) }