1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 01:48:17 +00:00

protob test fix after migration to get_fields()

This commit is contained in:
Dusan Klinec 2018-09-20 14:35:47 +02:00
parent 6b32e33c58
commit 61de49fae5
No known key found for this signature in database
GPG Key ID: 6337E118CCBCE103

View File

@ -22,7 +22,9 @@ from trezorlib import protobuf
class PrimitiveMessage(protobuf.MessageType): class PrimitiveMessage(protobuf.MessageType):
FIELDS = { @classmethod
def get_fields(cls):
return {
0: ("uvarint", protobuf.UVarintType, 0), 0: ("uvarint", protobuf.UVarintType, 0),
1: ("svarint", protobuf.SVarintType, 0), 1: ("svarint", protobuf.SVarintType, 0),
2: ("bool", protobuf.BoolType, 0), 2: ("bool", protobuf.BoolType, 0),