From 2bffd0d699e8af30366356e1e6b248d6f69d582c Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Mon, 26 Nov 2012 16:28:52 -0800 Subject: [PATCH] JS: Fix local_fee for remote.js. --- src/js/remote.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/remote.js b/src/js/remote.js index 302ca4bcd4..af2e012891 100644 --- a/src/js/remote.js +++ b/src/js/remote.js @@ -1177,7 +1177,7 @@ Transaction.prototype.submit = function (callback) { // YYY Might check paths for invalid accounts. - if (this.local_fee && undefined === tx_json.Fee) { + if (this.remote.local_fee && undefined === tx_json.Fee) { if ('Payment' === tx_json.TransactionType && tx_json.Flags & Remote.flags.Payment.CreateAccount) { @@ -1349,7 +1349,7 @@ Transaction.prototype.set_flags = function (flags) { } } - if (this.local_fee && (this.tx_json.Flags & Remote.flags.Payment.CreateAccount)) + if (this.remote.local_fee && (this.tx_json.Flags & Remote.flags.Payment.CreateAccount)) this.tx_json.Fee = Remote.fees.account_create.to_json(); } @@ -1405,8 +1405,8 @@ Transaction.prototype.offer_create = function (src, taker_pays, taker_gets, expi this.tx_json.TakerPays = Amount.json_rewrite(taker_pays); this.tx_json.TakerGets = Amount.json_rewrite(taker_gets); - if (this.local_fee) { - this.tx_json.Fee = Remote.fees.offer.to_json(); + if (this.remote.local_fee) { + this.tx_json.Fee = Remote.fees.offer.to_json(); } if (expiration)