Skip to content

Commit 873692c

Browse files
vrockz747TejasvOnly
authored andcommitted
Merge branch 'feat/inheritance/ui-updates' of github.com:Cypherock/x1_wallet_firmware into feat/inheritance/ui-updates
2 parents 9d984d8 + a05bc51 commit 873692c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

apps/inheritance_app/inheritance_auth_wallet.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ static bool auth_wallet_get_seed_entropy() {
225225
}
226226

227227
static bool auth_wallet_pair_card() {
228-
// Pair the card first
229228
card_error_type_e status = single_card_pair_operation(
230229
(char *)ui_text_tap_the_card, ui_text_place_card_below);
231230
if (status != CARD_OPERATION_SUCCESS) {
@@ -237,6 +236,10 @@ static bool auth_wallet_pair_card() {
237236

238237
static bool auth_wallet_get_wallet_entropy() {
239238
if (auth->do_wallet_based) {
239+
// Pair the card first
240+
if (!auth_wallet_pair_card()) {
241+
return false;
242+
}
240243
secure_data_t msgs[1] = {0};
241244
msgs[0].plain_data_size = WALLET_ID_SIZE;
242245
memcpy(msgs[0].plain_data, auth->data.wallet_id, WALLET_ID_SIZE);
@@ -260,8 +263,7 @@ static bool auth_wallet_get_wallet_entropy() {
260263
}
261264

262265
static bool auth_wallet_get_entropy() {
263-
if (!auth_wallet_get_seed_entropy() || !auth_wallet_pair_card() ||
264-
!auth_wallet_get_wallet_entropy()) {
266+
if (!auth_wallet_get_seed_entropy() || !auth_wallet_get_wallet_entropy()) {
265267
inheritance_send_error(ERROR_COMMON_ERROR_CORRUPT_DATA_TAG,
266268
ERROR_DATA_FLOW_INVALID_DATA);
267269
delay_scr_init(ui_text_inheritance_wallet_auth_fail, DELAY_TIME);

src/constant_texts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ const char *ui_text_inheritance_wallet_auth_flow_confirmation_generic =
537537
const char *ui_text_inheritance_wallet_authenticating =
538538
"Wallet\nauthenticating...";
539539
const char *ui_text_inheritance_wallet_auth_success =
540-
"Wallet\nauthentication\nsuccessfully";
540+
"Wallet\nauthenticated\nsuccessfully";
541541
const char *ui_text_inheritance_wallet_auth_fail =
542542
"Wallet\nauthentication\nfailed";
543543
const char *ui_text_tap_the_card = "Tap the card";

0 commit comments

Comments
 (0)