From 1045741d63dc6bb25b7aa5537275ac81e4f07998 Mon Sep 17 00:00:00 2001 From: Snazzah Date: Wed, 12 Aug 2020 22:43:47 -0500 Subject: [PATCH] Log txid when funding new accounts --- src/util.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index 90e02e1..2817124 100644 --- a/src/util.js +++ b/src/util.js @@ -228,7 +228,9 @@ Util.LBRY = { const account = await client.lbry.createAccount(discordID).then(r => r.json()); await client.sqlite.pair(discordID, account.result.id); console.info('Created pair', discordID, account.result.id); - await client.lbry.fundAccount({ to: account.result.id, amount: config.startingBalance }); + const response = await client.lbry.fundAccount({ to: account.result.id, amount: config.startingBalance }); + const transaction = await response.json(); + console.info('Funded account', account.result.id, transaction.result.txid); return account; }, ensureDecimal(str) {