From 54d2fa0e7ddd2d9f86308a3537640f45ebeb1a90 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 26 Aug 2020 19:48:35 +0200 Subject: [PATCH] commands: fix signtransaction cmd fixes #6502 --- electrum/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/commands.py b/electrum/commands.py index 59a07506b..b0a02eb31 100644 --- a/electrum/commands.py +++ b/electrum/commands.py @@ -394,7 +394,7 @@ class Commands: @command('wp') async def signtransaction(self, tx, privkey=None, password=None, wallet: Abstract_Wallet = None): """Sign a transaction. The wallet keys will be used unless a private key is provided.""" - tx = PartialTransaction(tx) + tx = tx_from_any(tx) if privkey: txin_type, privkey2, compressed = bitcoin.deserialize_privkey(privkey) pubkey = ecc.ECPrivkey(privkey2).get_public_key_bytes(compressed=compressed).hex()