From 78cc02d22b44954a0aad2a684c2189116c979dd2 Mon Sep 17 00:00:00 2001 From: Alexandre Paillier Date: Thu, 20 Jun 2024 13:17:35 +0200 Subject: [PATCH] Fix client compatibility with Python 3.9 --- client/src/ledger_app_clients/ethereum/eip712/InputData.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/ledger_app_clients/ethereum/eip712/InputData.py b/client/src/ledger_app_clients/ethereum/eip712/InputData.py index 2a12786..8c64b79 100644 --- a/client/src/ledger_app_clients/ethereum/eip712/InputData.py +++ b/client/src/ledger_app_clients/ethereum/eip712/InputData.py @@ -119,7 +119,7 @@ def send_struct_def_field(typename, keyname): return (typename, type_enum, typesize, array_lvls) -def encode_integer(value: Union[str | int], typesize: int) -> bytes: +def encode_integer(value: Union[str, int], typesize: int) -> bytes: # Some are already represented as integers in the JSON, but most as strings if isinstance(value, str): value = int(value, 0)