From a1a34774b87ecc6d6bcf3661c65164b7c5319da3 Mon Sep 17 00:00:00 2001 From: Andrew Kozlik Date: Mon, 3 Oct 2022 17:26:23 +0200 Subject: [PATCH] fix(common): Fix handling of default booleans in protobuf. --- common/protob/pb2py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/protob/pb2py b/common/protob/pb2py index d2c7f92d4d..cf5280bfdb 100755 --- a/common/protob/pb2py +++ b/common/protob/pb2py @@ -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 != "":