WIP most partial tx functionality working
This commit is contained in:
parent
2fb8ed3a69
commit
8cf5f2a453
3 changed files with 61 additions and 21 deletions
|
|
@ -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
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue