From 5757b10da8a9da0e0ce8eb97013b36545f46446c Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Mon, 3 Dec 2012 16:12:32 -0800 Subject: [PATCH] Refactor RPC wallet_accounts. --- src/js/remote.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/js/remote.js b/src/js/remote.js index 45cc4806..fe07934c 100644 --- a/src/js/remote.js +++ b/src/js/remote.js @@ -712,14 +712,12 @@ Remote.prototype.request_ripple_lines_get = function (accountID, index) { return request; }; -Remote.prototype.request_wallet_accounts = function (key) { - // XXX Does this require the server to be trusted? - //assert(this.trusted); +Remote.prototype.request_wallet_accounts = function (seed) { + assert(this.trusted); // Don't send secrets. var request = new Request(this, 'wallet_accounts'); - // XXX Convert API call to JSON - request.message.params = [key]; + request.message.seed = seed; return request; }; @@ -730,7 +728,6 @@ Remote.prototype.request_account_tx = function (accountID, ledger_min, ledger_ma var request = new Request(this, 'account_tx'); - // XXX Convert API call to JSON request.message.account = accountID; if (ledger_min === ledger_max) {