From c43729b076acd790c659a91eab5c3ffa29b9ed20 Mon Sep 17 00:00:00 2001 From: zebra-lucky Date: Mon, 8 Feb 2021 20:26:16 +0200 Subject: [PATCH] make_unsigned_request: set network for testnet --- electrum/paymentrequest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/electrum/paymentrequest.py b/electrum/paymentrequest.py index f58785bd3..7d2f63243 100644 --- a/electrum/paymentrequest.py +++ b/electrum/paymentrequest.py @@ -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