Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
tx parser: remove account_number preview page, remove key msg prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
notatestuser committed Apr 16, 2019
1 parent 2f7f6c8 commit 40f5234
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/lib/transaction_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#define MAX_RECURSION_DEPTH 3
#define MAX_TREE_LEVEL 2
#define NON_MSG_PAGES_COUNT 3
#define NON_MSG_PAGES_COUNT 2

//---------------------------------------------

Expand Down Expand Up @@ -380,9 +380,6 @@ int16_t transaction_get_display_key_value(char *key, int16_t max_key_length,
key_name = "chain_id";
break;
case 1:
key_name = "account_number";
break;
case 2:
key_name = "memo";
break;
default:
Expand Down Expand Up @@ -428,11 +425,9 @@ int16_t transaction_get_display_key_value(char *key, int16_t max_key_length,
subpage_to_display -= count;
}

snprintf(key, max_key_length, "msgs_%d/", msgs_array_index + 1);
int16_t prefix_len = strlen(key);
return display_arbitrary_item(subpage_to_display,
key + prefix_len,
max_key_length - prefix_len,
key,
max_key_length,
value,
max_value_length,
msgs_token_index,
Expand Down

0 comments on commit 40f5234

Please sign in to comment.