From 7a6d46acd3cb127d5ec8230ff18f806d239b76a8 Mon Sep 17 00:00:00 2001 From: wltsmrz Date: Wed, 4 Sep 2013 14:34:37 -0700 Subject: [PATCH] Accommodate new account_tx --- src/js/ripple/remote.js | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/js/ripple/remote.js b/src/js/ripple/remote.js index f1147c08..61b8d61e 100644 --- a/src/js/ripple/remote.js +++ b/src/js/ripple/remote.js @@ -581,7 +581,7 @@ Remote.prototype.request_ledger = function (ledger, opts, callback) { 'full' , 'expand' , 'transactions' - , 'accounts' + , 'accounts' ]; switch (typeof opts) { @@ -828,18 +828,23 @@ Remote.prototype.request_account_tx = function (obj, callback) { request.message.account = obj.account; - var props = [ - 'ledger_index_min' - , 'ledger_index_max' - , 'binary' - , 'count' - , 'descending' - , 'offset' + var request_fields = [ + 'ledger_index_min' //earliest + , 'ledger_index_max' //latest + , 'binary' //false + , 'count' //false + , 'descending' //false + , 'offset' //0 , 'limit' + + //extended account_tx + , 'forward' //false + , 'fwd_marker' + , 'rev_marker' ]; for (var key in obj) { - if (~props.indexOf(key)) { + if (~request_fields.indexOf(key)) { request.message[key] = obj[key]; } }