mirror of
https://github.com/LBRYFoundation/curate.git
synced 2025-08-23 17:37:25 +00:00
debug withdraw
This commit is contained in:
parent
93a5c5a7b1
commit
9465f82a71
1 changed files with 3 additions and 2 deletions
|
@ -26,9 +26,10 @@ module.exports = class Withdraw extends Command {
|
||||||
// Send to wallet
|
// Send to wallet
|
||||||
const response = await this.client.lbry.sendToWallet({ amount, to: args[1] });
|
const response = await this.client.lbry.sendToWallet({ amount, to: args[1] });
|
||||||
if (await this.handleResponse(message, response)) return;
|
if (await this.handleResponse(message, response)) return;
|
||||||
const txid = (await response.json()).result.inputs[0].txid;
|
const transaction = await response.json();
|
||||||
|
console.debug('withdrew from master wallet', transaction);
|
||||||
return message.channel.createMessage(`Sent ${parseFloat(amount)} LBC to ${args[1]}.\n` +
|
return message.channel.createMessage(`Sent ${parseFloat(amount)} LBC to ${args[1]}.\n` +
|
||||||
`https://explorer.lbry.com/tx/${txid}`);
|
`https://explorer.lbry.com/tx/${transaction.result.inputs[0].txid}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
get metadata() { return {
|
get metadata() { return {
|
||||||
|
|
Loading…
Add table
Reference in a new issue