Log txid when funding new accounts

This commit is contained in:
Snazzah 2020-08-12 22:43:47 -05:00
parent c3f99a1897
commit 1045741d63
No known key found for this signature in database
GPG key ID: 5E71D54F3D86282E

View file

@ -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) {