From 4397b635151d8594778c4ca9e8d0ce5a5d7e1440 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Mon, 24 Feb 2025 12:21:10 +0100 Subject: [PATCH] fix: change credential to bytes from bytearray --- core/src/apps/thp/credential_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/apps/thp/credential_manager.py b/core/src/apps/thp/credential_manager.py index 9170a06f9e..9fc5f484d7 100644 --- a/core/src/apps/thp/credential_manager.py +++ b/core/src/apps/thp/credential_manager.py @@ -117,4 +117,4 @@ def _encode_message_into_new_buffer(msg: protobuf.MessageType) -> bytes: msg_len = protobuf.encoded_length(msg) new_buffer = bytearray(msg_len) protobuf.encode(new_buffer, msg) - return new_buffer + return bytes(new_buffer)