mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 14:28:07 +00:00
apps.common.request_pin: fix client cancel
This commit is contained in:
parent
2a58ca986f
commit
c03924c05f
@ -57,7 +57,7 @@ async def request_pin_on_client(session_id: int, code: int=None) -> str:
|
||||
digits = matrix.digits
|
||||
matrix = None
|
||||
|
||||
if ack.WIRE_TYPE == Cancel:
|
||||
if ack.MESSAGE_WIRE_TYPE == Cancel:
|
||||
raise wire.FailureError(PinCancelled, 'PIN cancelled')
|
||||
return _decode_pin(ack.pin, digits)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user