diff --git a/lib/routes.js b/lib/routes.js index 9dbc57ee..dcce7537 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -89,10 +89,12 @@ function trade(req, res) { function send(req, res) { plugins.sendBitcoins(getFingerprint(req), req.body, function(err, status) { // TODO: use status.statusCode here after confirming machine compatibility + // FIX: (joshm) set txHash to status.txId instead of previous status.txHash which wasn't being set + // Need to clean up txHash vs txId res.json({ errType: err && err.name, err: err && err.message, - txHash: status && status.txHash, + txHash: status && status.txId, txId: status && status.txId }); });