mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 08:21:27 +00:00
parse invoices with lightning: prefix
This commit is contained in:
parent
5ca6fbaea7
commit
a5ab431b4b
1 changed files with 3 additions and 0 deletions
|
@ -131,6 +131,9 @@ class PayToEdit(CompletionTextEdit, ScanQRTextEdit, Logger):
|
|||
if data.startswith("bitcoin:"):
|
||||
self.win.pay_to_URI(data)
|
||||
return
|
||||
l = data.lower()
|
||||
if l.startswith("lightning:"):
|
||||
data = l[10:]
|
||||
if data.startswith("ln"):
|
||||
self.win.parse_lightning_invoice(data)
|
||||
self.lightning_invoice = data
|
||||
|
|
Loading…
Add table
Reference in a new issue