Browse Source

follow-up invoice changes: fix kivy ReceiveScreen

follow-up 719b468eee
master
SomberNight 3 years ago
parent
commit
b42b5c0c0f
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 6
      electrum/gui/kivy/uix/screens.py

6
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

Loading…
Cancel
Save