Skip to content

Commit

Permalink
update tests to reflect the changes in blindsign workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinkyaraj-23 committed Jul 16, 2024
1 parent 65a1ecf commit 4234dad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/src/apdu_sign.c
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,6 @@ handle_data_apdu_clear(command_t *cmd)

#ifdef HAVE_NBGL
static nbgl_layoutTagValueList_t useCaseTagValueList;
static nbgl_pageInfoLongPress_t infoLongPress;

void
reject_blindsign_cb(void)
Expand Down
5 changes: 5 additions & 0 deletions app/src/ui_stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,11 @@ void tz_ui_stream_start(void);
tz_ui_cb_type_t tz_ui_stream_get_cb_type(void);

#ifdef HAVE_NBGL
/**
* @brief Send Reject code.
*
*/
void tz_reject(void);
/**
* @brief Reject confirmation screen.
*
Expand Down
6 changes: 3 additions & 3 deletions app/src/ui_stream_nbgl.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ static void blindsign_splash(bool confirm) {
if (confirm) {
tz_reject_ui();
} else {
const char *blindsign_msg =
const char blindsign_msg[] =
"Your Ledger cannot decode this transaction. If you sign it, you could be authorizing "
"malicious actions that can drain your wallet.\n";
const char *learn_more_msg = '\n Learn More: tinyurl.com/ledger-Tezos';
char total_blindsign_msg[150]= {'\0'};
const char learn_more_msg[] = "\n Learn More: tinyurl.com/ledger-Tezos";
char total_blindsign_msg[200]= {'\0'};
memcpy(total_blindsign_msg, blindsign_msg, sizeof(blindsign_msg));
memcpy(total_blindsign_msg + sizeof(blindsign_msg), global.error_code, sizeof(global.error_code) );
memcpy(total_blindsign_msg + sizeof(blindsign_msg) + sizeof(global.error_code), learn_more_msg, sizeof(learn_more_msg));
Expand Down

0 comments on commit 4234dad

Please sign in to comment.