]> git.codecow.com Git - libnemo.git/commitdiff
Fix default account range end.
authorChris Duncan <chris@codecow.com>
Mon, 10 Aug 2026 06:25:00 +0000 (23:25 -0700)
committerChris Duncan <chris@codecow.com>
Mon, 10 Aug 2026 06:25:00 +0000 (23:25 -0700)
src/lib/wallet/accounts.ts

index 58b36bedcfb684de6afef85d654c3788aa914f23..69614e591b0e97beca59a05dd9fd3e9bf6eced07 100644 (file)
@@ -11,7 +11,7 @@ export async function _accounts (type: WalletType, accounts: Map<number, Account
 export async function _accounts (type: WalletType, accounts: Map<number, Account>, vault: Vault, from: number, to: number): Promise<Map<number, Account>>
 export async function _accounts (type: WalletType, accounts: Map<number, Account>, vault: Vault, from: unknown, to?: unknown): Promise<Account | Map<number, Account>> {
        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}` })
        }