Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Commit

Permalink
Adds passphrase back to wallet info for recovery
Browse files Browse the repository at this point in the history
Resolves #23
  • Loading branch information
NejcZdovc committed Sep 29, 2017
1 parent 082e7a2 commit afa2338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ Client.prototype.recoverWallet = function (recoveryId, passPhrase, callback) {
return callback(new Error('invalid passphrase'))
}

self.state.properties.wallet = underscore.defaults({ paymentId: recoveryId },
self.state.properties.wallet = underscore.defaults({ paymentId: recoveryId, passphrase: passPhrase },
underscore.pick(body, [ 'address', 'keychains' ]))

callback(null, self.state, underscore.omit(body, [ 'address', 'keychains' ]))
Expand Down

0 comments on commit afa2338

Please sign in to comment.