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
4 changes: 4 additions & 0 deletions legacy/firmware/i18n/keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -788,5 +788,9 @@
// This transaction contains a non-zero OP_RETURN value. Once confirmed, your f
// unds will be permanently locked.
#define TITLE__OP_RETURN_DESC 379
// To (Token Account):
#define LIST_KEY__TO_TOKEN_ACCOUNT__COLON 380
// From (Token Account):
#define LIST_KEY__FROM_TOKEN_ACCOUNT__COLON 381
#endif
// clang-format on
2 changes: 2 additions & 0 deletions legacy/firmware/i18n/locales/de.inc
Original file line number Diff line number Diff line change
Expand Up @@ -379,4 +379,6 @@ const char *const languages_de[] = {
"Anmeldedaten nicht\nverfügbar, wenn\ndeaktiviert. Fortfahren?",
"Stimmenauszählung",
"Diese Transaktion enthält einen von Null verschiedenen OP_RETURN-Wert. Nach der Bestätigung werden Ihre Gelder dauerhaft gesperrt.",
"An (Token-Konto):",
"Von (Token-Konto):",
};
2 changes: 2 additions & 0 deletions legacy/firmware/i18n/locales/en.inc
Original file line number Diff line number Diff line change
Expand Up @@ -379,4 +379,6 @@ const char *const languages_en[] = {
"Credentials will be\nunavailable when\ndisabled. Proceed?",
"Vote count",
"This transaction contains a non-zero OP_RETURN value. Once confirmed, your funds will be permanently locked.",
"To (Token Account):",
"From (Token Account):",
};
2 changes: 2 additions & 0 deletions legacy/firmware/i18n/locales/es.inc
Original file line number Diff line number Diff line change
Expand Up @@ -379,4 +379,6 @@ const char *const languages_es[] = {
"Credenciales no\ndisponibles al desactivar.\n¿Proceder?",
"Conteo de votos",
"Esta transacción contiene un valor OP_RETURN distinto de cero. Una vez confirmada, tus fondos quedarán bloqueados de forma permanente.",
"A (Cuenta Token):",
"De (Cuenta Token):",
};
2 changes: 2 additions & 0 deletions legacy/firmware/i18n/locales/ja.inc
Original file line number Diff line number Diff line change
Expand Up @@ -379,4 +379,6 @@ const char *const languages_ja[] = {
"無効にすると資格情報は利\n用できなくなります。続行\nしますか?",
"票数",
"この取引にはゼロ以外のOP_RETURN値が含まれています。一度承認されると、あなたの資金は永久にロックされます。",
"To (トークンアカウント):",
"FROM (トークンアカウント):",
};
2 changes: 2 additions & 0 deletions legacy/firmware/i18n/locales/pt_br.inc
Original file line number Diff line number Diff line change
Expand Up @@ -379,4 +379,6 @@ const char *const languages_pt_br[] = {
"As credenciais ficarão\nindisponíveis quando\ndesativadas. Continuar?",
"Contagem de votos",
"Esta transação contém um valor OP_RETURN diferente de zero. Uma vez confirmada, seus fundos serão permanentemente bloqueados.",
"Para (Conta de Token):",
"De (Conta de Token):",
};
2 changes: 2 additions & 0 deletions legacy/firmware/i18n/locales/zh_cn.inc
Original file line number Diff line number Diff line change
Expand Up @@ -379,4 +379,6 @@ const char *const languages_zh_cn[] = {
"禁用后凭据将不可用。\n继续吗?",
"票数",
"此交易包含非零的 OP_RETURN 值。一旦确认,您的资金将被永久锁定。",
"接收方(代币账户):",
"发送方(代币账户):",
};
2 changes: 2 additions & 0 deletions legacy/firmware/i18n/locales/zh_tw.inc
Original file line number Diff line number Diff line change
Expand Up @@ -379,4 +379,6 @@ const char *const languages_zh_tw[] = {
"停用後,憑證將不可用。\n繼續嗎?",
"票數",
"此交易包含非零的 OP_RETURN 值。一旦確認,您的資金將被永久鎖定。",
"接收方(代幣賬戶):",
"發送方(代幣賬戶):",
};
12 changes: 6 additions & 6 deletions legacy/firmware/solana.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ void solana_sign_tx(const SolanaSignTx *msg, const HDNode *node,
const char **tx_msg = format_tx_message("Solana");
if (transaction_summary_finalize(summary_step_kinds, &num_summary_steps) ==
0) {
char desc[64] = {0};
for (size_t i = 0; i < num_summary_steps; i++) {
if (transaction_summary_display_item(i, DisplayFlagAll)) {
fsm_sendFailure(FailureType_Failure_DataError, "Parse error");
Expand All @@ -132,8 +133,10 @@ void solana_sign_tx(const SolanaSignTx *msg, const HDNode *node,
continue;
} else if (strcmp(title, "Owned by") == 0) {
continue;
} else if (strcmp(title, "Fee payer") == 0) {
title = _(I__FEE_PAYER_COLON);
} else if (strcmp(title, "Token Sender") == 0) {
title = "From (Token Account)";
} else if (strcmp(title, "Token Recipient") == 0) {
title = "To (Token Account)";
} else if (strcmp(title, "Owner") == 0) {
continue;
} else if (strcmp(title, "Sender") == 0) {
Expand All @@ -145,10 +148,7 @@ void solana_sign_tx(const SolanaSignTx *msg, const HDNode *node,
title = "Amount";
}

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

steps_list[steps++] = i;

Expand Down
2 changes: 1 addition & 1 deletion vendor/libsol
Loading