SomberNight
3 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
2 changed files with
2 additions and
2 deletions
-
electrum/transaction.py
-
electrum/wallet.py
|
|
@ -145,7 +145,7 @@ class TxOutput: |
|
|
|
return cls.from_address_and_value(addr, val) |
|
|
|
if _type == TYPE_SCRIPT: |
|
|
|
return cls(scriptpubkey=bfh(addr), value=val) |
|
|
|
raise Exception(f"unexptected legacy address type: {_type}") |
|
|
|
raise Exception(f"unexpected legacy address type: {_type}") |
|
|
|
|
|
|
|
@property |
|
|
|
def address(self) -> Optional[str]: |
|
|
|
|
|
@ -2276,7 +2276,7 @@ class Abstract_Wallet(AddressSynchronizer, ABC): |
|
|
|
expiration = expiration or 0 |
|
|
|
return OnchainInvoice( |
|
|
|
type=PR_TYPE_ONCHAIN, |
|
|
|
outputs=[(TYPE_ADDRESS, address, amount_sat)], |
|
|
|
outputs=[PartialTxOutput.from_address_and_value(address, amount_sat)], |
|
|
|
message=message, |
|
|
|
time=timestamp, |
|
|
|
amount_sat=amount_sat, |
|
|
|