Skip to content

Commit

Permalink
Update reject screen text
Browse files Browse the repository at this point in the history
From "Reject?\nPress both buttons to reject." (on Nano(sp/x))
And "Reject?" (on Nanos)
To "Reject"
  • Loading branch information
spalmer25 committed Nov 2, 2023
1 parent b01e2b5 commit 0e45a11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
3 changes: 1 addition & 2 deletions app/src/apdu_pubkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ prompt_address(void)
tz_ui_stream_push(TZ_UI_STREAM_CB_ACCEPT, "Accept?",
"Press both buttons to accept.", TZ_UI_LAYOUT_BNP,
TZ_UI_ICON_TICK);
tz_ui_stream_push(TZ_UI_STREAM_CB_REJECT, "Reject?",
"Press both buttons to reject.", TZ_UI_LAYOUT_BNP,
tz_ui_stream_push(TZ_UI_STREAM_CB_REJECT, "Reject", "", TZ_UI_LAYOUT_BP,
TZ_UI_ICON_CROSS);
tz_ui_stream_close();
tz_ui_stream();
Expand Down
3 changes: 1 addition & 2 deletions app/src/apdu_sign.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ tz_ui_stream_push_accept_reject(void)
tz_ui_stream_push(TZ_UI_STREAM_CB_ACCEPT, "Accept", "and send",
TZ_UI_LAYOUT_BP, TZ_UI_ICON_TICK);
#endif
tz_ui_stream_push(TZ_UI_STREAM_CB_REJECT, "Reject?",
"Press both buttons to reject.", TZ_UI_LAYOUT_BNP,
tz_ui_stream_push(TZ_UI_STREAM_CB_REJECT, "Reject", "", TZ_UI_LAYOUT_BP,
TZ_UI_ICON_CROSS);
FUNC_LEAVE();
}
Expand Down
6 changes: 1 addition & 5 deletions tests/integration/test_runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,7 @@ expected_accept_public_key() {

expected_reject() {
echo " - expected_reject"
if [ "$TARGET" == "nanos" ]; then
expect_full_text 'Reject?'
else
expect_full_text 'Reject?' 'Press both buttons to reject.'
fi
expect_full_text 'Reject'
}

expected_parsing_error() {
Expand Down

0 comments on commit 0e45a11

Please sign in to comment.