File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,6 @@ static bool auth_wallet_get_seed_entropy() {
225
225
}
226
226
227
227
static bool auth_wallet_pair_card () {
228
- // Pair the card first
229
228
card_error_type_e status = single_card_pair_operation (
230
229
(char * )ui_text_tap_the_card , ui_text_place_card_below );
231
230
if (status != CARD_OPERATION_SUCCESS ) {
@@ -237,6 +236,10 @@ static bool auth_wallet_pair_card() {
237
236
238
237
static bool auth_wallet_get_wallet_entropy () {
239
238
if (auth -> do_wallet_based ) {
239
+ // Pair the card first
240
+ if (!auth_wallet_pair_card ()) {
241
+ return false;
242
+ }
240
243
secure_data_t msgs [1 ] = {0 };
241
244
msgs [0 ].plain_data_size = WALLET_ID_SIZE ;
242
245
memcpy (msgs [0 ].plain_data , auth -> data .wallet_id , WALLET_ID_SIZE );
@@ -260,8 +263,7 @@ static bool auth_wallet_get_wallet_entropy() {
260
263
}
261
264
262
265
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 ()) {
265
267
inheritance_send_error (ERROR_COMMON_ERROR_CORRUPT_DATA_TAG ,
266
268
ERROR_DATA_FLOW_INVALID_DATA );
267
269
delay_scr_init (ui_text_inheritance_wallet_auth_fail , DELAY_TIME );
Original file line number Diff line number Diff line change @@ -537,7 +537,7 @@ const char *ui_text_inheritance_wallet_auth_flow_confirmation_generic =
537
537
const char * ui_text_inheritance_wallet_authenticating =
538
538
"Wallet\nauthenticating..." ;
539
539
const char * ui_text_inheritance_wallet_auth_success =
540
- "Wallet\nauthentication \nsuccessfully" ;
540
+ "Wallet\nauthenticated \nsuccessfully" ;
541
541
const char * ui_text_inheritance_wallet_auth_fail =
542
542
"Wallet\nauthentication\nfailed" ;
543
543
const char * ui_text_tap_the_card = "Tap the card" ;
You can’t perform that action at this time.
0 commit comments