mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-13 09:58:09 +00:00
fixup! wip - change session behavior [no changelog]
This commit is contained in:
parent
3890972c91
commit
084b282d69
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user