From 6a04c14df01679b802501074fc67da5f924797cb Mon Sep 17 00:00:00 2001 From: Alexandre Paillier Date: Fri, 30 Jun 2023 13:42:56 +0200 Subject: [PATCH] Add back the call to ui_idle in case of EIP712 failure Was removed during the Stax porting --- src_features/signMessageEIP712/commands_712.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src_features/signMessageEIP712/commands_712.c b/src_features/signMessageEIP712/commands_712.c index 7810b93..a1cc45f 100644 --- a/src_features/signMessageEIP712/commands_712.c +++ b/src_features/signMessageEIP712/commands_712.c @@ -13,7 +13,8 @@ #include "schema_hash.h" #include "filtering.h" #include "common_712.h" -#include "ethUtils.h" // allzeroes +#include "ethUtils.h" // allzeroes +#include "common_ui.h" // ui_idle /** * Send the response to the previous APDU command @@ -38,6 +39,7 @@ void handle_eip712_return_code(bool success) { if (!success) { eip712_context_deinit(); + ui_idle(); } }