]> git.codecow.com Git - libnemo.git/commitdiff
Fix error message typo.
authorChris Duncan <chris@zoso.dev>
Tue, 19 Aug 2025 12:50:52 +0000 (05:50 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 19 Aug 2025 12:50:52 +0000 (05:50 -0700)
src/lib/wallet/accounts.ts

index 7e0f77f596535c954f8829dfe8ddc2e8bd03e5e1..84ab89beea8328541578b7c60f99ab6f4b772abc 100644 (file)
@@ -8,7 +8,7 @@ import { KeyPair } from '#types'
 export async function _accounts (accounts: AccountList, vault: Vault, from: number, to: number): Promise<AccountList>
 export async function _accounts (accounts: AccountList, vault: Vault, from: unknown, to: unknown): Promise<AccountList> {
        if (typeof from !== 'number' || typeof to !== 'number') {
-               throw new TypeError('Invalid account range', { cause: `${to}-${from}` })
+               throw new TypeError('Invalid account range', { cause: `${from}-${to}` })
        }
        if (from > to) [from as number, to as number] = [to, from]
        const output = new AccountList()