client: use 'new' passphrase param

This commit is contained in:
Javed Khan 2017-08-27 15:14:43 +05:30
parent 9d48c1385b
commit 9b777ac7e5

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);
};