Skip to content

Commit

Permalink
fix: add default case in finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
Z4karia committed Mar 1, 2023
1 parent e002100 commit 04dfc8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/handle_finalize.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ void handle_finalize(void *parameters) {
case MINT_SIGN_V2:
msg->numScreens = 4;
break;
default:
PRINTF("Selector Index not supported: %d\n", context->selectorIndex);
msg->result = ETH_PLUGIN_RESULT_ERROR;
return;
}
msg->result = ETH_PLUGIN_RESULT_OK;
}

0 comments on commit 04dfc8c

Please sign in to comment.