From 416f3cb04c6f9fee5bba8fa859d44e19fe859432 Mon Sep 17 00:00:00 2001 From: "pwnh4 (@loicttn)" Date: Thu, 12 Dec 2024 17:40:30 +0100 Subject: [PATCH] nt(finalize): clean --- src/handle_finalize.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handle_finalize.c b/src/handle_finalize.c index 59a2abf..36aa6a9 100644 --- a/src/handle_finalize.c +++ b/src/handle_finalize.c @@ -18,8 +18,6 @@ void handle_finalize(ethPluginFinalize_t *msg) { context_t *context = (context_t *) msg->pluginContext; - msg->uiType = ETH_UI_TYPE_GENERIC; - // if any of the parsers did not complete, we return an error if (context->next_param != V1_WFUNCS_UNEXPECTED_PARAMETER && context->next_param != V2_REQUEST_EXIT_UNEXPECTED_PARAMETER && @@ -35,6 +33,8 @@ void handle_finalize(ethPluginFinalize_t *msg) { return; } + msg->uiType = ETH_UI_TYPE_GENERIC; + switch (context->selectorIndex) { case KILN_V1_DEPOSIT: case KILN_V1_WITHDRAW: