From b1b71002e67ea01da75b7857141d605e0b1f6aba Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Fri, 31 Mar 2023 14:05:14 +0200 Subject: [PATCH] qml: followup b8aa87ded83e2312a18f6af2656c06d1a1bf556c --- electrum/gui/qml/qeinvoice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qml/qeinvoice.py b/electrum/gui/qml/qeinvoice.py index a5de70498..45475d6c5 100644 --- a/electrum/gui/qml/qeinvoice.py +++ b/electrum/gui/qml/qeinvoice.py @@ -599,6 +599,7 @@ class QEInvoiceParser(QEInvoice, QtEventListener): @pyqtSlot('quint64', str) def lnurlGetInvoice(self, amount, comment=None): assert self._lnurlData + self._logger.debug(f'{repr(self._lnurlData)}') amount = self.amountOverride.satsInt if self.lnurlData['min_sendable_sat'] != 0: @@ -632,7 +633,7 @@ class QEInvoiceParser(QEInvoice, QtEventListener): self._logger.debug(f'{repr(invoice)}') # assure no shenanigans with the bolt11 invoice we get back - lninvoice = Invoice.from_bech32(invoice) + lninvoice = Invoice.from_bech32(invoice['pr']) assert orig_amount * 1000 == lninvoice.amount_msat invoice = invoice['pr']