From 64c806e2197cd912c4cdfab7ad623285f34ca360 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 27 Feb 2013 20:29:22 -0800 Subject: Use writecheque command --- app.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app.coffee') diff --git a/app.coffee b/app.coffee index f0e501d9..8aac4705 100644 --- a/app.coffee +++ b/app.coffee @@ -63,8 +63,7 @@ app.get('/deposit', (req, res) -> app.get('/issue/:amount', (req, res) -> exec = require('child_process').exec - -# exec("opentxs sendcheque --myacct issuer --args \"memo \\\"here are your OT bitcoins.\\\" amount #{req.params.amount}\" --args \\\"validfor 2592001\\\"", (err, out, stderr) -> + exec("opentxs writecheque --myacct issuer --args \"memo \\\"Here's some OT-Bitcoins.\\\" amount #{req.params.amount} validfor 2592000\"", (err, out, stderr) -> exec("opentxs stat", (err, out, stderr) -> res.write(out) res.end() -- cgit v1.2.3