WIP most partial tx functionality working

This commit is contained in:
Josh Harvey 2014-11-18 15:18:13 -05:00
parent 2fb8ed3a69
commit 8cf5f2a453
3 changed files with 61 additions and 21 deletions

View file

@ -81,7 +81,7 @@ function poll(req, res) {
}
function trade(req, res) {
plugins.trade(req.body, getFingerprint(req), function(err, data) {
plugins.trade(getFingerprint(req), req.body, function(err, data) {
var statusCode = data && data.code !== null ? data.code : 201;
res.json(statusCode, {err: null});
});
@ -95,7 +95,7 @@ function send(req, res) {
res.json({
errType: err && err.name,
err: err && err.message,
txHash: status && status.txId,
txHash: status && status.txHash,
txId: status && status.txId
});
});