tadd_lightning_request command: return request object - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 8fb79196baa16e6ba52a7547adff2edd0c9e5f62
DIR parent c034219c5a31d09bcc183c5662f855799f112bb4
HTML Author: ThomasV <thomasv@electrum.org>
Date: Mon, 11 May 2020 17:52:04 +0200
add_lightning_request command: return request object
Diffstat:
M electrum/commands.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/electrum/commands.py b/electrum/commands.py
t@@ -866,7 +866,7 @@ class Commands:
async def add_lightning_request(self, amount, memo='', expiration=3600, wallet: Abstract_Wallet = None):
amount_sat = int(satoshis(amount))
key = await wallet.lnworker._add_request_coro(amount_sat, memo, expiration)
- return wallet.get_request(key)['invoice']
+ return wallet.get_request(key)
@command('w')
async def addtransaction(self, tx, wallet: Abstract_Wallet = None):