1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 15:28:10 +00:00

common: fix PassphraseAck.on_device id

This commit is contained in:
Tomas Susanka 2020-02-07 14:17:09 +00:00
parent 73ed2f3450
commit 56dc952495
3 changed files with 4 additions and 3 deletions

View File

@ -120,7 +120,8 @@ message PassphraseRequest {
*/ */
message PassphraseAck { message PassphraseAck {
optional string passphrase = 1; optional string passphrase = 1;
optional bool on_device = 2; // user wants to enter passphrase on the device // optional bytes state = 2; // DEPRECATED
optional bool on_device = 3; // user wants to enter passphrase on the device
} }
/** /**

View File

@ -25,5 +25,5 @@ class PassphraseAck(p.MessageType):
def get_fields(cls) -> Dict: def get_fields(cls) -> Dict:
return { return {
1: ('passphrase', p.UnicodeType, 0), 1: ('passphrase', p.UnicodeType, 0),
2: ('on_device', p.BoolType, 0), 3: ('on_device', p.BoolType, 0),
} }

View File

@ -25,5 +25,5 @@ class PassphraseAck(p.MessageType):
def get_fields(cls) -> Dict: def get_fields(cls) -> Dict:
return { return {
1: ('passphrase', p.UnicodeType, 0), 1: ('passphrase', p.UnicodeType, 0),
2: ('on_device', p.BoolType, 0), 3: ('on_device', p.BoolType, 0),
} }