mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
fix(common): Fix handling of default booleans in protobuf.
This commit is contained in:
parent
d815a7d6de
commit
a1a34774b8
@ -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 != "":
|
||||
|
Loading…
Reference in New Issue
Block a user