From 6879fd1e818bac04c9f8aa6858461093fc45be72 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 11 Aug 2026 17:28:14 -0700 Subject: [PATCH] Typos. --- src/lib/wallet/accounts.ts | 4 ++-- src/lib/wallet/index.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/wallet/accounts.ts b/src/lib/wallet/accounts.ts index 412e9b3..f310f6f 100644 --- a/src/lib/wallet/accounts.ts +++ b/src/lib/wallet/accounts.ts @@ -13,13 +13,13 @@ export async function _accounts (type: WalletType, accounts: Map to) [from as number, to as number] = [to, from] - if (from < 0 || 0x100000000 < from || to < 0 || 0x100000000 < to) { + if (from < 0 || 0xffffffff < from || to < 0 || 0x100000000 < to) { throw new TypeError('Invalid account range', { cause: `${from}-${to}` }) } if (to - from > 100) { diff --git a/src/lib/wallet/index.ts b/src/lib/wallet/index.ts index d3d537a..771fb9e 100644 --- a/src/lib/wallet/index.ts +++ b/src/lib/wallet/index.ts @@ -274,7 +274,8 @@ export class Wallet { /** * Retrieves accounts from a wallet using its child key derivation function. - * Defaults to the first account at index 0. If + * Defaults to the first account at index 0. If a range is specified, derives + * from the starting index up to, but not including, the end index. * * Derives a maximum of 1000 accounts per call and will throw an error if * exceeded. This is not a hard limit since the method can be called multiple -- 2.52.0