From 170d0798c40003d9e12dd52afa622b206ca9020a Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 14 Aug 2025 13:55:21 -0700 Subject: [PATCH] Fix Ledger constructor. --- src/lib/wallet/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/wallet/index.ts b/src/lib/wallet/index.ts index f743955..16bbb35 100644 --- a/src/lib/wallet/index.ts +++ b/src/lib/wallet/index.ts @@ -143,7 +143,7 @@ export class Wallet { constructor (type: WalletType, id?: string) constructor (type: unknown, id?: string) { - if (!Wallet.#isInternal) { + if (!Wallet.#isInternal && type !== 'Ledger') { throw new Error(`Wallet cannot be instantiated directly. Use 'await Wallet.create()' instead.`) } if (type !== 'BIP-44' && type !== 'BLAKE2b' && type !== 'Ledger') { -- 2.47.3