Merge pull request #300 from tuxcanfly/passphrase-fix

client: use 'new' passphrase param
This commit is contained in:
Christopher Jeffrey (JJ) 2017-10-18 22:24:03 -07:00 committed by GitHub
commit 61906d7564

View File

@ -673,7 +673,7 @@ HTTPClient.prototype.retoken = async function retoken(id, passphrase) {
*/
HTTPClient.prototype.setPassphrase = function setPassphrase(id, old, new_) {
const body = { old: old, passphrase: new_ };
const body = { old: old, new: new_ };
return this._post(`/wallet/${id}/passphrase`, body);
};