commit 54d2fa0e7ddd2d9f86308a3537640f45ebeb1a90
parent b7c2820951fe4a115fd7519a87425c5fe117dacc
Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 26 Aug 2020 19:48:35 +0200
commands: fix signtransaction cmd
fixes #6502
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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()