1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 14:28:07 +00:00

fixup! wip - change session behavior [no changelog]

This commit is contained in:
M1nd3r 2024-12-09 16:15:13 +01:00
parent 0c353eb242
commit c0d46ac762

View File

@ -130,6 +130,7 @@ class TrezorClient:
self,
passphrase: str | object | None = None,
derive_cardano: bool = False,
session_id: int = 0,
) -> Session:
"""
Returns initialized session (with derived seed).
@ -144,7 +145,7 @@ class TrezorClient:
return SessionV1.new(self, passphrase, derive_cardano)
if isinstance(self.protocol, ProtocolV2):
assert isinstance(passphrase, str) or passphrase is None
return SessionV2.new(self, passphrase, derive_cardano)
return SessionV2.new(self, passphrase, derive_cardano, session_id)
raise NotImplementedError # TODO
def resume_session(self, session: Session):