From c0f673f1ed0202a1fe661c4acf1a9d526b897afd Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Thu, 13 Aug 2015 18:13:34 -0300 Subject: [PATCH] fix result type --- lib/expressapp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/expressapp.js b/lib/expressapp.js index 3324372..55a838a 100644 --- a/lib/expressapp.js +++ b/lib/expressapp.js @@ -290,9 +290,9 @@ ExpressApp.prototype.start = function(opts, cb) { router.post('/v1/broadcast_raw/', function(req, res) { getServerWithAuth(req, res, function(server) { - server.broadcastRawTx(req.body, function(err, txp) { + server.broadcastRawTx(req.body, function(err, txid) { if (err) return returnError(err, res, req); - res.json(txp); + res.json(txid); res.end(); }); });