Skip to content

Commit a27c3c9

Browse files
Revert "FEAT"
This reverts commit ef09b5b.
1 parent af15705 commit a27c3c9

2 files changed

Lines changed: 9 additions & 30 deletions

File tree

src/features/address_book/handle_identity.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,12 @@ nbgl_contentTagValue_t *get_edit_identifier_tagValue(uint8_t pairIndex) {
367367
break;
368368

369369
case 2:
370-
g_ctx.current_pair.item = "Old address";
370+
g_ctx.current_pair.item = "Old address name";
371371
g_ctx.current_pair.value = g_ctx.edit_identifier.old_identifier;
372372
break;
373373

374374
case 3:
375-
g_ctx.current_pair.item = "New address";
375+
g_ctx.current_pair.item = "New address name";
376376
g_ctx.current_pair.value = g_ctx.edit_identifier.new_identifier;
377377
break;
378378

src/features/address_book/handle_ledger_account.c

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@
4343

4444
/* Private defines -----------------------------------------------------------*/
4545

46-
/** Number of hex chars shown on each side of the middle-truncated address */
47-
#define ADDR_SHORT_HEX_LEN 4
48-
/** "0x" + ADDR_SHORT_HEX_LEN + "..." + ADDR_SHORT_HEX_LEN + '\0' */
49-
#define ADDR_DISPLAY_SHORT_SIZE (2 + ADDR_SHORT_HEX_LEN + 3 + ADDR_SHORT_HEX_LEN + 1)
50-
5146
/* Private types -------------------------------------------------------------*/
5247

5348
/**
@@ -56,7 +51,6 @@
5651
typedef struct {
5752
char *address_display;
5853
char *network_display;
59-
char address_display_short[ADDR_DISPLAY_SHORT_SIZE]; ///< "0x1234...5678"
6054
const char *texts[1];
6155
const char *subTexts[1];
6256
nbgl_warningDetails_t details;
@@ -164,7 +158,6 @@ void display_register_ledger_account_review(nbgl_choiceCallback_t choice_callbac
164158
get_network_icon_from_chain_id(&g_ctx.ledger_account->chain_id);
165159
register_ledger_account_ctx_t *ra = &g_ctx.register_account;
166160

167-
// Full address kept for the details modal (accessible via detail header icon)
168161
ra->texts[0] = "Address";
169162
ra->subTexts[0] = ra->address_display;
170163
ra->details.title = g_ctx.ledger_account->account_name;
@@ -173,27 +166,13 @@ void display_register_ledger_account_review(nbgl_choiceCallback_t choice_callbac
173166
ra->details.barList.texts = ra->texts;
174167
ra->details.barList.subTexts = ra->subTexts;
175168

176-
// Middle-truncated address for the subMessage line: "0x1234...5678"
177-
snprintf(ra->address_display_short,
178-
sizeof(ra->address_display_short),
179-
"0x%.*s...%s",
180-
ADDR_SHORT_HEX_LEN,
181-
ra->address_display + 2,
182-
ra->address_display + 2 + ADDRESS_LENGTH_HEX - ADDR_SHORT_HEX_LEN);
183-
184-
nbgl_useCaseAdvancedChoiceWithDetails(icon,
185-
#ifdef SCREEN_SIZE_WALLET
186-
&INFO_I_ICON,
187-
#else
188-
NULL,
189-
#endif
190-
"Confirm name?",
191-
g_ctx.ledger_account->account_name,
192-
ra->address_display_short,
193-
"Confirm",
194-
"Cancel",
195-
&ra->details,
196-
choice_callback);
169+
nbgl_useCaseChoiceWithDetails(icon,
170+
"Confirm name?",
171+
g_ctx.ledger_account->account_name,
172+
"Confirm",
173+
"Cancel",
174+
&ra->details,
175+
choice_callback);
197176
}
198177

199178
/* =========================================================================

0 commit comments

Comments
 (0)