tMerge pull request #7011 from zebra-lucky/make_payreq_details_network - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit 2057185aa48d5157db9a07081a891e74dc7023c4 (DIR) parent 42c10c2fecf5cc56d149b7d09ae2dddb36560624 (HTM) Author: ThomasV <thomasv@electrum.org> Date: Tue, 9 Feb 2021 10:51:50 +0100 Merge pull request #7011 from zebra-lucky/make_payreq_details_network make_unsigned_request: set network for testnet Diffstat: M electrum/paymentrequest.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- (DIR) diff --git a/electrum/paymentrequest.py b/electrum/paymentrequest.py t@@ -339,6 +339,8 @@ def make_unsigned_request(req: 'OnchainInvoice'): script = bfh(address_to_script(addr)) outputs = [(script, amount)] pd = pb2.PaymentDetails() + if constants.net.TESTNET: + pd.network = 'test' for script, amount in outputs: pd.outputs.add(amount=amount, script=script) pd.time = time