From 544baebab10d40baeaa7a02d0b334524b5e47e58 Mon Sep 17 00:00:00 2001 From: Alejo Acosta Date: Fri, 15 Nov 2024 12:07:58 -0300 Subject: [PATCH] fix: remove duplicated code --- src/wallet/qi-hdwallet.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/wallet/qi-hdwallet.ts b/src/wallet/qi-hdwallet.ts index d8175a8c..c0d73e9e 100644 --- a/src/wallet/qi-hdwallet.ts +++ b/src/wallet/qi-hdwallet.ts @@ -1307,10 +1307,6 @@ export class QiHDWallet extends AbstractHDWallet { if (existingAddresses && existingAddresses.some((addr) => addr.address === addressInfo.address)) { throw new Error(`Address ${addressInfo.address} already exists in the wallet`); } - const existingAddresses = wallet._addressesMap.get(key); - if (existingAddresses && existingAddresses.some((addr) => addr.address === addressInfo.address)) { - throw new Error(`Address ${addressInfo.address} already exists in the wallet`); - } wallet._addressesMap.get(key)!.push(addressInfo); }