diff --git a/lib/http/client.js b/lib/http/client.js index 52ca58d6..48ff6b79 100644 --- a/lib/http/client.js +++ b/lib/http/client.js @@ -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); };