mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
fix #6203: do not let request amount be None
This commit is contained in:
parent
154b9cab50
commit
b6d56ece82
1 changed files with 1 additions and 0 deletions
|
@ -1724,6 +1724,7 @@ class Abstract_Wallet(AddressSynchronizer, ABC):
|
||||||
util.trigger_callback('request_status', addr, status)
|
util.trigger_callback('request_status', addr, status)
|
||||||
|
|
||||||
def make_payment_request(self, address, amount, message, expiration):
|
def make_payment_request(self, address, amount, message, expiration):
|
||||||
|
amount = amount or None
|
||||||
timestamp = int(time.time())
|
timestamp = int(time.time())
|
||||||
_id = bh2u(sha256d(address + "%d"%timestamp))[0:10]
|
_id = bh2u(sha256d(address + "%d"%timestamp))[0:10]
|
||||||
return OnchainInvoice(
|
return OnchainInvoice(
|
||||||
|
|
Loading…
Add table
Reference in a new issue