mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 12:28:09 +00:00
protobuf: fix loading embedded messages
This commit is contained in:
parent
4f8e01c5df
commit
cf2bc1a28e
@ -176,6 +176,7 @@ class MessageType(Type):
|
|||||||
if issubclass(ftype, MessageType):
|
if issubclass(ftype, MessageType):
|
||||||
flen = await UVarintType.load(source)
|
flen = await UVarintType.load(source)
|
||||||
slen = source.set_limit(flen)
|
slen = source.set_limit(flen)
|
||||||
|
target.send((field, None))
|
||||||
await ftype.load(source, target)
|
await ftype.load(source, target)
|
||||||
source.set_limit(slen)
|
source.set_limit(slen)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user