Skip to content

Commit

Permalink
nt(finalize): clean
Browse files Browse the repository at this point in the history
  • Loading branch information
loicttn committed Dec 12, 2024
1 parent 9951bb8 commit 416f3cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handle_finalize.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand All @@ -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:
Expand Down

0 comments on commit 416f3cb

Please sign in to comment.