Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions legacy/firmware/layout2.c
Original file line number Diff line number Diff line change
Expand Up @@ -4136,6 +4136,7 @@ bool layoutTransactionSign(const char *chain_name, uint64_t chain_id,
layoutButtonNoAdapter(NULL, &bmp_bottom_left_close);
layoutButtonYesAdapter(NULL, &bmp_bottom_right_confirm);
} else { // key*
layoutHeader(title);
if (index == (len > 0 ? 3 : 2)) {
oledDrawStringAdapter(0, y, key1, FONT_STANDARD);
oledDrawStringAdapter(0, y + 10, value1, FONT_STANDARD);
Expand Down
16 changes: 8 additions & 8 deletions legacy/firmware/solana.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,26 +137,26 @@ void solana_sign_tx(const SolanaSignTx *msg, const HDNode *node,
} else if (strcmp(title, "Owner") == 0) {
continue;
} else if (strcmp(title, "Sender") == 0) {
title = "From:";
title = "From";
} else if (strcmp(title, "Recipient") == 0) {
title = "Send to:";
title = "Send to";
} else if (strcmp(title, "Transfer tokens") == 0 ||
strcmp(title, "Transfer") == 0) {
title = "Amount:";
title = "Amount";
}

// char desc[64];
// memset(desc, 0, sizeof(desc));
// strcat(desc, title);
// strcat(desc, ":");
char desc[64];
memset(desc, 0, sizeof(desc));
strcat(desc, title);
strcat(desc, ":");

steps_list[steps++] = i;

layoutDialogAdapterEx(
tx_msg[0], &bmp_bottom_left_close, NULL,
i < num_summary_steps - 1 ? &bmp_bottom_right_arrow
: &bmp_bottom_right_confirm,
NULL, NULL, gettext_from_en(title), text, NULL, NULL);
NULL, NULL, gettext_from_en(desc), text, NULL, NULL);

uint8_t key;
button_scan:
Expand Down
Loading