Skip to content

Commit

Permalink
feat: change items quantity on blindsigning mode
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelm41 committed Oct 31, 2024
1 parent bcef809 commit 597e1e7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions app/src/common/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void tx_parse_reset()
zxerr_t tx_getNumItems(uint8_t *num_items)
{
if(app_mode_blindsign()){

Check warning

Code scanning / CodeQL

Implicit function declaration Warning

Function call implicitly declares 'app_mode_blindsign'.
*num_items = 1;
*num_items = 3;
return zxerr_ok;
}

Expand All @@ -131,15 +131,6 @@ zxerr_t tx_getItem(int8_t displayIdx,

CHECK_ZXERR(tx_getNumItems(&numItems))

if(app_mode_blindsign()){
MEMZERO(outKey, outKeyLen);
MEMZERO(outVal, outValLen);

snprintf(outKey, outKeyLen, "test");
snprintf(outVal, outValLen, "test");
return zxerr_ok;
}

if (displayIdx > numItems) {
return zxerr_no_data;
}
Expand Down

0 comments on commit 597e1e7

Please sign in to comment.