From 36081c41097bc78ba21be2027e729433a8fe9bad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Tue, 15 Apr 2014 15:07:46 +0200 Subject: [PATCH] Use new `Trader` API to send bitcoins --- lib/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes.js b/lib/routes.js index 6b11a17e..318ccae0 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -55,7 +55,7 @@ var trade = function(req, res) { var send = function(req, res) { var fingerprint = req.connection.getPeerCertificate().fingerprint; - api.send.sendBitcoins(fingerprint, req.body, function(err, txHash) { + _trader.sendBitcoins(fingerprint, req.body, function(err, txHash) { res.json({err: err, txHash: txHash}); }); };