From c17e06b525523466059417274e288f5d4bf4bde3 Mon Sep 17 00:00:00 2001 From: Alexandre Paillier Date: Tue, 23 Apr 2024 17:57:04 +0200 Subject: [PATCH] Remove filters counter check at the end of EIP712 flow --- src_features/signMessageEIP712/commands_712.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src_features/signMessageEIP712/commands_712.c b/src_features/signMessageEIP712/commands_712.c index 8a21dc3..2e2f7b7 100644 --- a/src_features/signMessageEIP712/commands_712.c +++ b/src_features/signMessageEIP712/commands_712.c @@ -196,10 +196,6 @@ bool handle_eip712_sign(const uint8_t *const apdu_buf) { sizeof(tmpCtx.messageSigningContext712.messageHash)) || (path_get_field() != NULL)) { apdu_response_code = APDU_RESPONSE_CONDITION_NOT_SATISFIED; - } else if ((ui_712_get_filtering_mode() == EIP712_FILTERING_FULL) && - (ui_712_remaining_filters() != 0)) { - PRINTF("%d EIP712 filters are missing\n", ui_712_remaining_filters()); - apdu_response_code = APDU_RESPONSE_REF_DATA_NOT_FOUND; } else if (parseBip32(&apdu_buf[OFFSET_CDATA], &length, &tmpCtx.messageSigningContext.bip32) != NULL) { if (!N_storage.verbose_eip712 && (ui_712_get_filtering_mode() == EIP712_FILTERING_BASIC)) {