Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init #1113

Closed
wants to merge 13 commits into from
Prev Previous commit
Next Next commit
remove redundant set purpose
  • Loading branch information
pinheadmz committed Nov 20, 2019
commit 1ae22e211facd8d0b60279bf37f59dcde9e391bb
2 changes: 0 additions & 2 deletions lib/hd/private.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ class HDPrivateKey {
if (options.purpose) {
assert(common.purposes[options.purpose] !== undefined, 'Bad purpose');
this.purpose = options.purpose;
} else {
this.purpose = 'x';
}

this.depth = options.depth;
Expand Down
2 changes: 0 additions & 2 deletions lib/hd/public.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ class HDPublicKey {
if (options.purpose) {
assert(common.purposes[options.purpose] !== undefined, 'Bad purpose');
this.purpose = options.purpose;
} else {
this.purpose = 'x';
}

this.depth = options.depth;
Expand Down