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}` })
}