1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-21 23:18:13 +00:00

fix(common): Fix handling of default booleans in protobuf.

This commit is contained in:
Andrew Kozlik 2022-10-03 17:26:23 +02:00 committed by Andrew Kozlik
parent d815a7d6de
commit a1a34774b8

View File

@ -638,7 +638,7 @@ class RustBlobRenderer:
return DEFAULT_VARINT_ENTRY.build((field.number, int(default)))
elif field.type == FieldDescriptor.TYPE_BOOL:
return DEFAULT_VARINT_ENTRY.build((field.number, int(default == "True")))
return DEFAULT_VARINT_ENTRY.build((field.number, int(default == "true")))
elif field.type == FieldDescriptor.TYPE_BYTES:
if default != "":