From b6d56ece8283a928edf087003f7fa33c6968ae8d Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 3 Jun 2020 18:20:20 +0200 Subject: [PATCH] fix #6203: do not let request amount be None --- electrum/wallet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/electrum/wallet.py b/electrum/wallet.py index f00ce09cc..74c8a78b0 100644 --- a/electrum/wallet.py +++ b/electrum/wallet.py @@ -1724,6 +1724,7 @@ class Abstract_Wallet(AddressSynchronizer, ABC): util.trigger_callback('request_status', addr, status) def make_payment_request(self, address, amount, message, expiration): + amount = amount or None timestamp = int(time.time()) _id = bh2u(sha256d(address + "%d"%timestamp))[0:10] return OnchainInvoice(