Skip to content

Commit

Permalink
Update account.js
Browse files Browse the repository at this point in the history
change address will not be saved if call hsw-cli change
  • Loading branch information
qimiaoguo authored Mar 31, 2020
1 parent 14e0b83 commit 143a283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wallet/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ class Account extends bio.Struct {
break;
case 1:
key = this.deriveChange(this.changeDepth);
lookahead = this.deriveReceive(this.changeDepth + this.lookahead);
lookahead = this.deriveChange(this.changeDepth + this.lookahead);
await this.saveKey(b, lookahead);
this.changeDepth += 1;
this.change = key;
Expand Down

0 comments on commit 143a283

Please sign in to comment.