]> git.codecow.com Git - libnemo.git/commitdiff
Typos.
authorChris Duncan <chris@codecow.com>
Wed, 12 Aug 2026 00:28:14 +0000 (17:28 -0700)
committerChris Duncan <chris@codecow.com>
Wed, 12 Aug 2026 00:28:14 +0000 (17:28 -0700)
src/lib/wallet/accounts.ts
src/lib/wallet/index.ts

index 412e9b3c96fe490c30acd0865306a87f9c2ecb11..f310f6f3a1f2769ca6e83a53e3a49399fbfc8490 100644 (file)
@@ -13,13 +13,13 @@ export async function _accounts (type: WalletType, accounts: Map<number, Account
        const isSingle = to === undefined
        if (typeof from !== 'number') {
                throw new Error('Invalid account range start argument', { cause: `${typeof from} ${from}` })
-       }       
+       }
        to ??= from + 1
        if (typeof to !== 'number') {
                throw new Error('Invalid account range end argument', { cause: `${typeof to} ${to}` })
        }
        if (from > 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) {
index d3d537aeac2f9e24edc1d6925747f01e3c99db97..771fb9e22206a9091dd5cd530cfe8c4e27097758 100644 (file)
@@ -274,7 +274,8 @@ export class Wallet {
 \r
        /**\r
        * Retrieves accounts from a wallet using its child key derivation function.\r
-       * Defaults to the first account at index 0. If\r
+       * Defaults to the first account at index 0. If a range is specified, derives\r
+       * from the starting index up to, but not including, the end index.\r
        *\r
        * Derives a maximum of 1000 accounts per call and will throw an error if\r
        * exceeded. This is not a hard limit since the method can be called multiple\r