Removed NBGL-specific truncation of long EIP-712 fields

This commit is contained in:
Alexandre Paillier
2024-05-24 14:33:58 +02:00
parent c50943e4ca
commit aac8c31bb8

View File

@@ -22,21 +22,10 @@ static void message_progress(bool confirm) {
}
static void message_update(bool confirm) {
uint16_t len;
if (confirm) {
explicit_bzero(&pair, sizeof(pair));
explicit_bzero(&pairs_list, sizeof(pairs_list));
// limit the value to one page
nbgl_getTextMaxLenInNbLines(LARGE_MEDIUM_FONT,
strings.tmp.tmp,
SCREEN_WIDTH - (2 * BORDER_MARGIN),
NB_MAX_LINES_IN_REVIEW,
&len,
false);
strings.tmp.tmp[len] = '\0';
pair.item = strings.tmp.tmp2;
pair.value = strings.tmp.tmp;
pairs_list.nbPairs = 1;