From 945120654ef685f53c307501855b3357e37b21a8 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 10 Jul 2025 23:02:27 -0700 Subject: [PATCH] Remove redundant condition. --- src/lib/wallets/wallet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/wallets/wallet.ts b/src/lib/wallets/wallet.ts index e35b808..29f64b6 100644 --- a/src/lib/wallets/wallet.ts +++ b/src/lib/wallets/wallet.ts @@ -113,7 +113,7 @@ export abstract class Wallet { for (const keypair of keypairs) { const { privateKey, publicKey, index } = keypair if (index == null) throw new RangeError('Account keys derived but index missing') - if (privateKey != null && privateKey) { + if (privateKey != null) { output[index] = await Account.fromPrivateKey(privateKey, index) } else if (publicKey != null) { output[index] = await Account.fromPublicKey(publicKey, index) -- 2.47.3