Skip to content

Commit

Permalink
remove _privateKeys map from HDWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoacosta74 committed Jun 7, 2024
1 parent cd60ca3 commit da1d4aa
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/wallet/hdwallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ export abstract class HDWallet {
// Map of addresses to address info
protected _addresses: Map<string, NeuteredAddressInfo> = new Map();

// Map of addresses to private keys
protected _privateKeys: Map<string, string> = new Map();

// Root node of the HD wallet
protected _root: HDNodeWallet;

Expand Down Expand Up @@ -112,8 +109,6 @@ export abstract class HDWallet {

this._addresses.set(neuteredAddressInfo.address, neuteredAddressInfo);

this._privateKeys.set(addressNode.address, addressNode.privateKey);

return neuteredAddressInfo;

}
Expand All @@ -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;
}
Expand Down Expand Up @@ -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<string>

// TODO: Implement this method
abstract sendTransaction(tx: TransactionRequest): Promise<TransactionResponse>

connect(provider: Provider): void {
Expand Down

0 comments on commit da1d4aa

Please sign in to comment.