mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-02 18:25:21 +00:00
fix #2410
This commit is contained in:
parent
ac77c9b9bd
commit
265fd5ad3f
1 changed files with 2 additions and 5 deletions
|
@ -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):
|
||||
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue