From: Chris Duncan Date: Tue, 19 Aug 2025 12:50:52 +0000 (-0700) Subject: Fix error message typo. X-Git-Tag: v0.10.5~41^2~53 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=55b9d94bd296d4be2fa20359462b2e932b57a9bc;p=libnemo.git Fix error message typo. --- diff --git a/src/lib/wallet/accounts.ts b/src/lib/wallet/accounts.ts index 7e0f77f..84ab89b 100644 --- a/src/lib/wallet/accounts.ts +++ b/src/lib/wallet/accounts.ts @@ -8,7 +8,7 @@ import { KeyPair } from '#types' export async function _accounts (accounts: AccountList, vault: Vault, from: number, to: number): Promise export async function _accounts (accounts: AccountList, vault: Vault, from: unknown, to: unknown): Promise { 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()