Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

Commit

Permalink
Merge pull request #6 from NejcZdovc/fix/passphrase
Browse files Browse the repository at this point in the history
Adds passphrase back to wallet info for recovery
  • Loading branch information
mrose17 authored Sep 29, 2017
2 parents 0c692da + 1b15a48 commit 3bae57a
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 @@ -466,7 +466,7 @@ Client.prototype.recoverWallet = function (recoveryId, passPhrase, callback) {

if (!body.addresses) return callback(new Error('invalid response'))

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

return callback(null, self.state, underscore.omit(body, [ 'addresses', 'altcurrency' ]))
Expand Down

0 comments on commit 3bae57a

Please sign in to comment.