SomberNight
2 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
4 additions and
1 deletions
-
electrum/invoices.py
|
|
@ -128,7 +128,10 @@ class Invoice(StoredObject): |
|
|
|
if self.is_lightning(): |
|
|
|
address = self.get_address() |
|
|
|
amount = self.get_amount_sat() |
|
|
|
outputs = [PartialTxOutput.from_address_and_value(address, int(amount))] if address and amount else [] |
|
|
|
if address and amount is not None: |
|
|
|
outputs = [PartialTxOutput.from_address_and_value(address, int(amount))] |
|
|
|
else: |
|
|
|
outputs = [] |
|
|
|
else: |
|
|
|
outputs = self.outputs |
|
|
|
return outputs |
|
|
|