From 49da2a89d8c82d25fe3a37829eb0f121239e87ad Mon Sep 17 00:00:00 2001 From: krigga Date: Mon, 12 Aug 2024 18:57:28 +0300 Subject: [PATCH] chore: code style --- src/ui/display_address_nbgl.c | 7 ++++++- src/ui/display_proof_nbgl.c | 7 ++++++- src/ui/display_sign_data_nbgl.c | 8 +++++++- src/ui/display_transaction_nbgl.c | 14 +++++++++----- src/ui/menu_nbgl.c | 9 ++++++++- 5 files changed, 36 insertions(+), 9 deletions(-) diff --git a/src/ui/display_address_nbgl.c b/src/ui/display_address_nbgl.c index 2e4e96e..8068df0 100644 --- a/src/ui/display_address_nbgl.c +++ b/src/ui/display_address_nbgl.c @@ -42,7 +42,12 @@ int ui_display_address(uint8_t flags) { return -1; } - nbgl_useCaseAddressReview(g_address, NULL, &C_ledger_stax_ton_64, "Verify TON address", NULL, review_choice); + nbgl_useCaseAddressReview(g_address, + NULL, + &C_ledger_stax_ton_64, + "Verify TON address", + NULL, + review_choice); return 0; } diff --git a/src/ui/display_proof_nbgl.c b/src/ui/display_proof_nbgl.c index fef362e..773b780 100644 --- a/src/ui/display_proof_nbgl.c +++ b/src/ui/display_proof_nbgl.c @@ -53,7 +53,12 @@ int ui_display_proof(uint8_t flags) { pairList.nbMaxLinesForValue = 0; pairList.pairs = &pair; - nbgl_useCaseAddressReview(g_address, &pairList, &C_ledger_stax_ton_64, "Verify TON address\nto application", NULL, review_choice); + nbgl_useCaseAddressReview(g_address, + &pairList, + &C_ledger_stax_ton_64, + "Verify TON address\nto application", + NULL, + review_choice); return 0; } diff --git a/src/ui/display_sign_data_nbgl.c b/src/ui/display_sign_data_nbgl.c index 39bfbd5..7790b08 100644 --- a/src/ui/display_sign_data_nbgl.c +++ b/src/ui/display_sign_data_nbgl.c @@ -42,7 +42,13 @@ int ui_display_sign_data() { pairList.nbPairs = G_context.sign_data_info.hints.hints_count; pairList.smallCaseForValue = false; - nbgl_useCaseReview(TYPE_MESSAGE, &pairList, &C_ledger_stax_ton_64, "Sign custom data", NULL, "Sign custom data", on_review_choice); + nbgl_useCaseReview(TYPE_MESSAGE, + &pairList, + &C_ledger_stax_ton_64, + "Sign custom data", + NULL, + "Sign custom data", + on_review_choice); return 0; } diff --git a/src/ui/display_transaction_nbgl.c b/src/ui/display_transaction_nbgl.c index e0af16c..295ec1d 100644 --- a/src/ui/display_transaction_nbgl.c +++ b/src/ui/display_transaction_nbgl.c @@ -109,7 +109,13 @@ static void ui_start_review() { op |= BLIND_OPERATION; } - nbgl_useCaseReview(op, &pairList, &C_ledger_stax_ton_64, g_transaction_title, NULL, g_transaction_finish_title, on_review_choice); + nbgl_useCaseReview(op, + &pairList, + &C_ledger_stax_ton_64, + g_transaction_title, + NULL, + g_transaction_finish_title, + on_review_choice); } static void on_blind_choice2(bool proceed) { @@ -131,8 +137,7 @@ static void on_blind_choice1(bool back_to_safety) { "your assets\nat risk.", "I accept the risk", "Reject transaction", - on_blind_choice2 - ); + on_blind_choice2); } } @@ -143,8 +148,7 @@ static void ui_show_blind_warning() { "It may not be safe to sign this transaction. To continue, you'll need to review the risk.", "Back to safety", "Review risk", - on_blind_choice1 - ); + on_blind_choice1); } // Public function to start the transaction review diff --git a/src/ui/menu_nbgl.c b/src/ui/menu_nbgl.c index cebbb4f..fe23075 100644 --- a/src/ui/menu_nbgl.c +++ b/src/ui/menu_nbgl.c @@ -97,7 +97,14 @@ static const nbgl_contentInfoList_t infoContents = { static void ui_menu_common(uint8_t initPage) { initialize_switches(); - nbgl_useCaseHomeAndSettings(APPNAME, &C_ledger_stax_ton_64, NULL, initPage, &settingsContents, &infoContents, NULL, app_quit); + nbgl_useCaseHomeAndSettings(APPNAME, + &C_ledger_stax_ton_64, + NULL, + initPage, + &settingsContents, + &infoContents, + NULL, + app_quit); } void ui_menu_main(void) {