Browse Source

trezor: model T is 'T', not '2'

master
Sander van Grieken 2 years ago
parent
commit
44f83b78e2
  1. 2
      electrum/plugins/trezor/clientbase.py

2
electrum/plugins/trezor/clientbase.py

@ -292,7 +292,7 @@ class TrezorClientBase(HardwareClientBase, Logger):
limit = 9 limit = 9
if self.features.model == "1" and (1, 10, 0) <= self.client.version: if self.features.model == "1" and (1, 10, 0) <= self.client.version:
limit = 50 limit = 50
elif self.features.model == "2" and (2, 4, 0) <= self.client.version: elif self.features.model == "T" and (2, 4, 0) <= self.client.version:
limit = 50 limit = 50
if len(pin) > limit: if len(pin) > limit:
self.handler.show_error(_('The PIN cannot be longer than {} characters.').format(limit)) self.handler.show_error(_('The PIN cannot be longer than {} characters.').format(limit))

Loading…
Cancel
Save