From c04de14e4388f64a3b968cf040738a8de3bd1189 Mon Sep 17 00:00:00 2001 From: Juuddi Date: Wed, 15 May 2024 14:43:40 -0500 Subject: [PATCH] Remove duplicate function --- src.ts/wallet/utxohdwallet.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src.ts/wallet/utxohdwallet.ts b/src.ts/wallet/utxohdwallet.ts index 57e11700..5ad58d11 100644 --- a/src.ts/wallet/utxohdwallet.ts +++ b/src.ts/wallet/utxohdwallet.ts @@ -372,25 +372,6 @@ export class UTXOHDWallet extends BaseWallet { derivationIndex = addressInfo.index + 1; } } - - /** - * Returns the first naked address for a given zone. - */ - async getAddress(zone: string): Promise { - if (!this.validateZone(zone)) throw new Error(`Invalid zone: ${zone}`); - - const shardWalletData = this.#shardWalletsMap.get(zone); - if (!shardWalletData) { - throw new Error(`Wallet has not been initialized for zone: ${zone}`); - } - // After the wallet has been initialized, the first naked address is always - // the first address within the pack of last GAP addresses - if (shardWalletData.addressesInfo.length < GAP) { - throw new Error(`No enough naked addresses available for zone: ${zone}`); - } - return shardWalletData.addressesInfo[shardWalletData.addressesInfo.length - GAP].address; - - } /** * Returns the first naked address for a given zone.