Fix logging of fund command

This commit is contained in:
Ralph S. (Coolguy3289) 2020-08-14 11:14:07 -04:00
parent 1c348efb32
commit a3404b55b1

View file

@ -23,7 +23,7 @@ module.exports = class FundAccount extends Command {
})) return; })) return;
const response = await this.client.lbry.fundAccount({to: account.accountID, amount: givenAmount}); const response = await this.client.lbry.fundAccount({to: account.accountID, amount: givenAmount});
const transaction = await response.json(); const transaction = await response.json();
console.info('Funded account', account.result.id, transaction.result.txid); console.info('Funded account', account.accountID, transaction.result.txid);
const txid = transaction.result.txid; const txid = transaction.result.txid;
return message.channel.createMessage(`Successfully funded account! https://explorer.lbry.com/tx/${txid}`); return message.channel.createMessage(`Successfully funded account! https://explorer.lbry.com/tx/${txid}`);
} }