harmony-one/sdk

TruffleProvider (HDNode) wallet inadvertently generates a new account/address accompanied with a random private key and mnemonic

polymorpher opened this issue · 0 comments

Fixed by #84

The original code in the constructor of HDNode calls this.getHdWallet(...) with randomly generated mnemonic if none is supplied. This generates a new account in the process. This is undesirable when private keys are later added to the HDNode to associate accounts, causing confusion on choosing the right signer / making account operations.