From 20fa7fc2f7aa16551b188c5aec1103f01e8bd814 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Thu, 6 Dec 2018 19:33:02 +0100 Subject: [PATCH] trezor: fix sign_transaction prev_tx --- electrum/plugins/trezor/trezor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/plugins/trezor/trezor.py b/electrum/plugins/trezor/trezor.py index ff9b2c8cf..36b892156 100644 --- a/electrum/plugins/trezor/trezor.py +++ b/electrum/plugins/trezor/trezor.py @@ -302,7 +302,7 @@ class TrezorPlugin(HW_PluginBase): raise ValueError('unexpected txin type: {}'.format(electrum_txin_type)) def sign_transaction(self, keystore, tx, prev_tx, xpub_path): - prev_tx = { txhash: self.electrum_tx_to_txtype(tx, xpub_path) for txhash, tx in prev_tx.items() } + prev_tx = { bfh(txhash): self.electrum_tx_to_txtype(tx, xpub_path) for txhash, tx in prev_tx.items() } client = self.get_client(keystore) inputs = self.tx_inputs(tx, xpub_path, True) outputs = self.tx_outputs(keystore.get_derivation(), tx)