From da1d4aac6d2341344d30473c24b107e7cc7df743 Mon Sep 17 00:00:00 2001 From: Alejo Acosta Date: Thu, 6 Jun 2024 16:20:23 -0500 Subject: [PATCH] remove _privateKeys map from HDWallet --- src/wallet/hdwallet.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/wallet/hdwallet.ts b/src/wallet/hdwallet.ts index aa794f93..304cd2bc 100644 --- a/src/wallet/hdwallet.ts +++ b/src/wallet/hdwallet.ts @@ -28,9 +28,6 @@ export abstract class HDWallet { // Map of addresses to address info protected _addresses: Map = new Map(); - // Map of addresses to private keys - protected _privateKeys: Map = new Map(); - // Root node of the HD wallet protected _root: HDNodeWallet; @@ -112,8 +109,6 @@ export abstract class HDWallet { this._addresses.set(neuteredAddressInfo.address, neuteredAddressInfo); - this._privateKeys.set(addressNode.address, addressNode.privateKey); - return neuteredAddressInfo; } @@ -140,7 +135,6 @@ export abstract class HDWallet { zone: zone }; this._addresses.set(neuteredAddressInfo.address, neuteredAddressInfo); - this._privateKeys.set(addressNode.address, addressNode.privateKey); return neuteredAddressInfo; } @@ -187,12 +181,8 @@ export abstract class HDWallet { return (this as any).createInstance(mnemonic); } - // TODO: Implement this method - // static fromExtendedKey(extendedKey: string): HDWallet {} - abstract signTransaction(tx: TransactionRequest): Promise - // TODO: Implement this method abstract sendTransaction(tx: TransactionRequest): Promise connect(provider: Provider): void {