Port EIP712 to the new NBGL streaming use case

Fixes the Flex navigation issue
This commit is contained in:
Alexandre Paillier
2024-05-24 13:39:04 +02:00
parent 19d71ffe77
commit c50943e4ca
4 changed files with 49 additions and 64 deletions

View File

@@ -41,10 +41,18 @@ void ui_message_start(const char *title,
ui_message_confirm_rejection);
}
void ui_message_712_approved(void) {
static void ui_message_712_approved(void) {
ui_712_approve();
}
void ui_message_712_rejected(void) {
static void ui_message_712_rejected(void) {
ui_712_reject();
}
void ui_typed_message_review_choice(bool confirm) {
if (confirm) {
nbgl_useCaseReviewStatus(STATUS_TYPE_MESSAGE_SIGNED, ui_message_712_approved);
} else {
nbgl_useCaseReviewStatus(STATUS_TYPE_MESSAGE_REJECTED, ui_message_712_rejected);
}
}