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)