From 4057aa318321cce0338af905319f2828150f56e3 Mon Sep 17 00:00:00 2001 From: Alexandre Paillier Date: Mon, 17 Jun 2024 16:52:45 +0200 Subject: [PATCH] Client support --- client/src/ledger_app_clients/ethereum/eip712/InputData.py | 7 ++++++- 1 file changed, 6 insertions(+), 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 e5ffbbd..2a12786 100644 --- a/client/src/ledger_app_clients/ethereum/eip712/InputData.py +++ b/client/src/ledger_app_clients/ethereum/eip712/InputData.py @@ -203,7 +203,12 @@ def send_struct_impl_field(value, field): if filtering_paths[path]["type"] == "amount_join_token": send_filtering_amount_join_token(filtering_paths[path]["token"]) elif filtering_paths[path]["type"] == "amount_join_value": - send_filtering_amount_join_value(filtering_paths[path]["token"], + if "token" in filtering_paths[path].keys(): + token = filtering_paths[path]["token"] + else: + # Permit (ERC-2612) + token = 0xff + send_filtering_amount_join_value(token, filtering_paths[path]["name"]) elif filtering_paths[path]["type"] == "datetime": send_filtering_datetime(filtering_paths[path]["name"])