diff --git a/src/common/ui/display_nbgl.c b/src/common/ui/display_nbgl.c index 010177de..87dc50ce 100644 --- a/src/common/ui/display_nbgl.c +++ b/src/common/ui/display_nbgl.c @@ -13,7 +13,6 @@ #include "nbgl_use_case.h" accountSender_t global_account_sender; - static nbgl_contentTagValue_t pairs[10]; static void review_choice(bool confirm) { @@ -220,6 +219,30 @@ void uiSignTransferToEncryptedDisplay(volatile unsigned int *flags) { } void uiSignTransferToPublicDisplay(volatile unsigned int *flags) { + // Setup data to display + uint8_t pairIndex = 0; + pairs[pairIndex].item = "Sender"; + pairs[pairIndex].value = (char *) global_account_sender.sender; + pairIndex++; + pairs[pairIndex].item = "Unshield amount"; + pairs[pairIndex].value = (char *) global.signTransferToPublic.amount; + pairIndex++; + + // Create the page content + nbgl_contentTagValueList_t content; + content.nbPairs = pairIndex; + content.pairs = pairs; + content.smallCaseForValue = false; + content.nbMaxLinesForValue = 0; + content.startIndex = 0; + // Setup the review screen + nbgl_useCaseReview(TYPE_TRANSACTION, + &content, + &C_app_concordium_64px, + "Review Transaction", + NULL, // No subtitle + "Sign transaction", + review_choice_sign); *flags |= IO_ASYNCH_REPLY; } diff --git a/tests/snapshots/flex/test_transfer_to_public/00000.png b/tests/snapshots/flex/test_transfer_to_public/00000.png new file mode 100644 index 00000000..d0cd8f66 Binary files /dev/null and b/tests/snapshots/flex/test_transfer_to_public/00000.png differ diff --git a/tests/snapshots/flex/test_transfer_to_public/00001.png b/tests/snapshots/flex/test_transfer_to_public/00001.png new file mode 100644 index 00000000..c39afaab Binary files /dev/null and b/tests/snapshots/flex/test_transfer_to_public/00001.png differ diff --git a/tests/snapshots/flex/test_transfer_to_public/00002.png b/tests/snapshots/flex/test_transfer_to_public/00002.png new file mode 100644 index 00000000..b89973eb Binary files /dev/null and b/tests/snapshots/flex/test_transfer_to_public/00002.png differ diff --git a/tests/snapshots/flex/test_transfer_to_public/00003.png b/tests/snapshots/flex/test_transfer_to_public/00003.png new file mode 100644 index 00000000..ea645d60 Binary files /dev/null and b/tests/snapshots/flex/test_transfer_to_public/00003.png differ diff --git a/tests/snapshots/stax/test_transfer_to_public/00000.png b/tests/snapshots/stax/test_transfer_to_public/00000.png new file mode 100644 index 00000000..e8132c48 Binary files /dev/null and b/tests/snapshots/stax/test_transfer_to_public/00000.png differ diff --git a/tests/snapshots/stax/test_transfer_to_public/00001.png b/tests/snapshots/stax/test_transfer_to_public/00001.png new file mode 100644 index 00000000..05b9b0b7 Binary files /dev/null and b/tests/snapshots/stax/test_transfer_to_public/00001.png differ diff --git a/tests/snapshots/stax/test_transfer_to_public/00002.png b/tests/snapshots/stax/test_transfer_to_public/00002.png new file mode 100644 index 00000000..49efffbc Binary files /dev/null and b/tests/snapshots/stax/test_transfer_to_public/00002.png differ diff --git a/tests/snapshots/stax/test_transfer_to_public/00003.png b/tests/snapshots/stax/test_transfer_to_public/00003.png new file mode 100644 index 00000000..f0407603 Binary files /dev/null and b/tests/snapshots/stax/test_transfer_to_public/00003.png differ