From 8a29e02dd5c18f8326ea99698bb387a53fbc0c2b Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Tue, 5 Sep 2017 22:55:14 -0500 Subject: [PATCH] feature(QA sendcoins): qa sendcoins and log the txid --- app/lnd/methods/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/lnd/methods/index.js b/app/lnd/methods/index.js index 47e9295e..1cc69a83 100644 --- a/app/lnd/methods/index.js +++ b/app/lnd/methods/index.js @@ -96,7 +96,10 @@ export default function (lnd, event, msg, data) { // Transaction looks like { txid: String } // { addr, amount } = data sendcoins(lnd, data) - .then((transaction) => event.sender.send('sendSuccessful', transaction) + .then((transaction) => { + console.log('transaction: ', transaction) + event.sender.send('sendSuccessful', { transaction }) + }) .catch(error => console.log('sendcoins error: ', error)) break case 'openChannel':