From b42b5c0c0fc7f715464fbed6b969c020761ce41c Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 3 Mar 2023 15:18:01 +0000 Subject: [PATCH] follow-up invoice changes: fix kivy ReceiveScreen follow-up 719b468eee8b3e13680f6e7b90194d618181fe0c --- electrum/gui/kivy/uix/screens.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/electrum/gui/kivy/uix/screens.py b/electrum/gui/kivy/uix/screens.py index 143e44ae2..6476e2e1a 100644 --- a/electrum/gui/kivy/uix/screens.py +++ b/electrum/gui/kivy/uix/screens.py @@ -14,7 +14,7 @@ from kivy.properties import StringProperty from electrum.invoices import (PR_DEFAULT_EXPIRATION_WHEN_CREATING, PR_PAID, PR_UNKNOWN, PR_EXPIRED, PR_INFLIGHT, - pr_expiration_values, Invoice) + pr_expiration_values, Invoice, Request) from electrum import bitcoin, constants from electrum import lnutil from electrum.transaction import tx_from_any, PartialTxOutput @@ -536,12 +536,12 @@ class ReceiveScreen(CScreen): self.update() self.app.show_request(key) - def get_card(self, req: Invoice) -> Dict[str, Any]: + def get_card(self, req: Request) -> Dict[str, Any]: is_lightning = req.is_lightning() if not is_lightning: address = req.get_address() else: - address = req.lightning_invoice + address = self.app.wallet.get_bolt11_invoice(req) key = req.get_id() amount = req.get_amount_sat() description = req.message