From 7380f88e37265cb6b00ea722873ec8bbe00109bf Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Mon, 7 Jul 2025 06:20:50 -0700 Subject: [PATCH] Compare with instanceof instead of constructor name. --- src/lib/wallets/ledger-wallet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/wallets/ledger-wallet.ts b/src/lib/wallets/ledger-wallet.ts index e0a5436..f1c12b5 100644 --- a/src/lib/wallets/ledger-wallet.ts +++ b/src/lib/wallets/ledger-wallet.ts @@ -404,7 +404,7 @@ export class LedgerWallet extends Wallet { */ async updateCache (index: number, hash: string, rpc: Rpc): Promise async updateCache (index: number, input: any, node?: Rpc): Promise { - if (typeof input === 'string' && node?.constructor === Rpc) { + if (typeof input === 'string' && node instanceof Rpc) { const data = { 'json_block': 'true', 'hash': input -- 2.47.3