tfix #2410 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 265fd5ad3f7299d2c57f574e576734c97bbb2354 DIR parent ac77c9b9bdb9a3618a0febd98cc72bece9eb7c25 HTML Author: ThomasV <thomasv@electrum.org> Date: Sun, 21 May 2017 10:21:32 +0200 fix #2410 Diffstat: M plugins/trezor/plugin.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) --- DIR diff --git a/plugins/trezor/plugin.py b/plugins/trezor/plugin.py t@@ -42,7 +42,7 @@ class TrezorCompatibleKeyStore(Hardware_KeyStore): client = self.get_client() address_path = self.get_derivation() + "/%d/%d"%sequence address_n = client.expand_path(address_path) - msg_sig = client.sign_message(self.get_coin_name(), address_n, message) + msg_sig = client.sign_message(self.plugin.get_coin_name(), address_n, message) return msg_sig.signature def sign_transaction(self, tx, password): t@@ -145,10 +145,7 @@ class TrezorCompatiblePlugin(HW_PluginBase): return client def get_coin_name(self): - if TESTNET: - return "Testnet" - else: - return "Bitcoin" + return "Testnet" if TESTNET else "Bitcoin" def initialize_device(self, device_id, wizard, handler): # Initialization method