mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-04-24 02:59:03 +00:00
fix: change credential to bytes from bytearray
This commit is contained in:
parent
91891540b2
commit
e0893b9932
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user