From 56dc952495eac8ead7e750e60eded7096e41f6b2 Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Fri, 7 Feb 2020 14:17:09 +0000 Subject: [PATCH] common: fix PassphraseAck.on_device id --- common/protob/messages-common.proto | 3 ++- core/src/trezor/messages/PassphraseAck.py | 2 +- python/src/trezorlib/messages/PassphraseAck.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/common/protob/messages-common.proto b/common/protob/messages-common.proto index c58e2af786..892258bb12 100644 --- a/common/protob/messages-common.proto +++ b/common/protob/messages-common.proto @@ -120,7 +120,8 @@ message PassphraseRequest { */ message PassphraseAck { 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 } /** diff --git a/core/src/trezor/messages/PassphraseAck.py b/core/src/trezor/messages/PassphraseAck.py index d8fc4ded26..791d6c54fa 100644 --- a/core/src/trezor/messages/PassphraseAck.py +++ b/core/src/trezor/messages/PassphraseAck.py @@ -25,5 +25,5 @@ class PassphraseAck(p.MessageType): def get_fields(cls) -> Dict: return { 1: ('passphrase', p.UnicodeType, 0), - 2: ('on_device', p.BoolType, 0), + 3: ('on_device', p.BoolType, 0), } diff --git a/python/src/trezorlib/messages/PassphraseAck.py b/python/src/trezorlib/messages/PassphraseAck.py index 3a95f6bc62..bc5f94c2d1 100644 --- a/python/src/trezorlib/messages/PassphraseAck.py +++ b/python/src/trezorlib/messages/PassphraseAck.py @@ -25,5 +25,5 @@ class PassphraseAck(p.MessageType): def get_fields(cls) -> Dict: return { 1: ('passphrase', p.UnicodeType, 0), - 2: ('on_device', p.BoolType, 0), + 3: ('on_device', p.BoolType, 0), }