mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-17 01:52:02 +00:00
python: do not send deprecated state in PassphraseAck on T1
This commit is contained in:
parent
ff702c7d7f
commit
8d93503c9c
@ -186,8 +186,12 @@ class TrezorClient:
|
|||||||
available_on_device = Capability.PassphraseEntry in self.features.capabilities
|
available_on_device = Capability.PassphraseEntry in self.features.capabilities
|
||||||
|
|
||||||
def send_passphrase(passphrase=None, on_device=None):
|
def send_passphrase(passphrase=None, on_device=None):
|
||||||
|
if self.features.model == "1":
|
||||||
|
state = None
|
||||||
|
else:
|
||||||
|
state = self.session_id
|
||||||
msg = messages.PassphraseAck(
|
msg = messages.PassphraseAck(
|
||||||
_state=self.session_id, passphrase=passphrase, on_device=on_device
|
_state=state, passphrase=passphrase, on_device=on_device
|
||||||
)
|
)
|
||||||
resp = self.call_raw(msg)
|
resp = self.call_raw(msg)
|
||||||
if isinstance(resp, messages.Deprecated_PassphraseStateRequest):
|
if isinstance(resp, messages.Deprecated_PassphraseStateRequest):
|
||||||
|
Loading…
Reference in New Issue
Block a user