Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
fix(restoring): some comments added.
Browse files Browse the repository at this point in the history
  • Loading branch information
sha49 committed Mar 4, 2016
1 parent a2dc439 commit db90b1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blockchain-wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ Wallet.prototype.newAccount = function (label, pw, hdwalletIndex, success, nosav
cipher = WalletCrypto.cipherFunction.bind(undefined, pw, this._sharedKey, this._pbkdf2_iterations);
}
var newAccount = this._hd_wallets[index].newAccount(label, cipher).lastAccount;
try {
try { // MyWallet.ws.send can fail when restoring from mnemonic because it is not initialized.
MyWallet.ws.send(MyWallet.ws.msgXPUBSub(newAccount.extendedPublicKey));
} catch (e){}
if(!(nosave === true)) MyWallet.syncWallet();
Expand Down

0 comments on commit db90b1c

Please sign in to comment.