From 081995788ee074c83f8b1282186ce0fff4e5010c Mon Sep 17 00:00:00 2001 From: gabrielkerekes Date: Wed, 18 Oct 2023 12:02:56 +0200 Subject: [PATCH] feat(core): add `read_uint64_le` to `common/readers` - will be needed for solana tx parsing --- core/src/apps/common/readers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/apps/common/readers.py b/core/src/apps/common/readers.py index 0a9114ee45..f60e9e5a52 100644 --- a/core/src/apps/common/readers.py +++ b/core/src/apps/common/readers.py @@ -55,3 +55,8 @@ def read_uint16_le(r: BufferReader) -> int: def read_uint32_le(r: BufferReader) -> int: data = r.read_memoryview(4) return int.from_bytes(data, "little") + + +def read_uint64_le(r: BufferReader) -> int: + data = r.read_memoryview(8) + return int.from_bytes(data, "little")