diff --git a/js/remote.js b/js/remote.js index 50f6c067fd..a669c91be6 100644 --- a/js/remote.js +++ b/js/remote.js @@ -676,8 +676,6 @@ Transaction.prototype.offer_create = function (src, taker_pays, taker_gets, expi this.secret = this.account_secret(src); this.transaction.TransactionType = 'OfferCreate'; this.transaction.Account = this.account_default(src); - this.transaction.Amount = deliver_amount.to_json(); - this.transaction.Destination = dst_account; this.transaction.Fee = fees.offer.to_json(); this.transaction.TakerPays = taker_pays.to_json(); this.transaction.TakerGets = taker_gets.to_json(); diff --git a/test/remote-test.js b/test/remote-test.js index 85ee664e4f..e53b5a373d 100644 --- a/test/remote-test.js +++ b/test/remote-test.js @@ -58,7 +58,8 @@ buster.testCase("Remote functions", { buster.assert.equals(m.ledger_current_index, 3); done(); - }).on('error', function(m) { + }) + .on('error', function(m) { console.log(m); buster.assert(false); @@ -72,7 +73,8 @@ buster.testCase("Remote functions", { buster.assert.equals(m.ledger_closed_index, 2); done(); - }).on('error', function(m) { + }) + .on('error', function(m) { console.log("error: %s", m); buster.assert(false); @@ -93,12 +95,14 @@ buster.testCase("Remote functions", { buster.assert('node' in r); done(); - }).on('error', function(m) { + }) + .on('error', function(m) { console.log("error: %s", m); buster.assert(false); }).request(); - }).on('error', function(m) { + }) + .on('error', function(m) { console.log("error: %s", m); buster.assert(false); @@ -118,14 +122,16 @@ buster.testCase("Remote functions", { // console.log("account_root: %s", JSON.stringify(r)); buster.assert(false); - }).on('error', function(m) { + }) + .on('error', function(m) { console.log("error: %s", m); buster.assert.equals(m.error, 'remoteError'); buster.assert.equals(m.remote.error, 'malformedAddress'); done(); }).request(); - }).on('error', function(m) { + }) + .on('error', function(m) { console.log("error: %s", m); buster.assert(false); @@ -145,14 +151,16 @@ buster.testCase("Remote functions", { // console.log("account_root: %s", JSON.stringify(r)); buster.assert(false); - }).on('error', function(m) { + }) + .on('error', function(m) { console.log("error: %s", m); buster.assert.equals(m.error, 'remoteError'); buster.assert.equals(m.remote.error, 'entryNotFound'); done(); }).request(); - }).on('error', function(m) { + }) + .on('error', function(m) { console.log("error: %s", m); buster.assert(false); @@ -174,12 +182,14 @@ buster.testCase("Remote functions", { buster.assert('node_binary' in r); done(); - }).on('error', function(m) { + }) + .on('error', function(m) { console.log("error: %s", m); buster.assert(false); }).request(); - }).on('error', function(m) { + }) + .on('error', function(m) { console.log(m); buster.assert(false); @@ -196,7 +206,8 @@ buster.testCase("Remote functions", { // Need to verify account and balance. done(); - }).on('error', function(m) { + }) + .on('error', function(m) { console.log("error: %s", m); buster.assert(false);