Skip to content

Commit

Permalink
Merge PR #1133 from 'manavdesai27/fix_mismatch'
Browse files Browse the repository at this point in the history
  • Loading branch information
pinheadmz committed May 12, 2023
2 parents 9b45034 + 3ab066c commit 92433b2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lib/hd/hd.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,22 @@ HD.generate = function generate() {

/**
* Generate an {@link HDPrivateKey} from a seed.
* @param {Object|Mnemonic|Buffer} options - seed,
* mnemonic, mnemonic options.
* @param {Buffer} seed - seed,
* @returns {HDPrivateKey}
*/

HD.fromSeed = function fromSeed(options) {
return HDPrivateKey.fromSeed(options);
HD.fromSeed = function fromSeed(seed) {
return HDPrivateKey.fromSeed(seed);
};

/**
* Instantiate an hd private key from a mnemonic.
* @param {Mnemonic|Object} mnemonic
* @param {Mnemonic} mnemonic - mnemonic
* @returns {HDPrivateKey}
*/

HD.fromMnemonic = function fromMnemonic(options) {
return HDPrivateKey.fromMnemonic(options);
HD.fromMnemonic = function fromMnemonic(mnemonic) {
return HDPrivateKey.fromMnemonic(mnemonic);
};

/**
Expand Down

0 comments on commit 92433b2

Please sign in to comment.