@@ -120,7 +120,7 @@ UX_STEP_NOCB(ux_approval_tx_hash_step,
120
120
#else
121
121
.title = "Transaction hash" ,
122
122
#endif
123
- .text = strings .common .fullAmount
123
+ .text = strings .common .tx_hash
124
124
});
125
125
UX_STEP_NOCB (
126
126
ux_approval_amount_step ,
@@ -249,8 +249,8 @@ void ux_approve_tx(bool fromPlugin) {
249
249
} else {
250
250
if (tmpContent .txContent .dataPresent ) {
251
251
#pragma GCC diagnostic ignored "-Wformat"
252
- snprintf (strings .common .fullAmount ,
253
- sizeof (strings .common .fullAmount ),
252
+ snprintf (strings .common .tx_hash ,
253
+ sizeof (strings .common .tx_hash ),
254
254
"0x%.*h" ,
255
255
sizeof (tmpCtx .transactionContext .hash ),
256
256
tmpCtx .transactionContext .hash );
@@ -261,7 +261,8 @@ void ux_approve_tx(bool fromPlugin) {
261
261
if (strings .common .fromAddress [0 ] != 0 ) {
262
262
ux_approval_tx_flow [step ++ ] = & ux_approval_from_step ;
263
263
}
264
- if (!tmpContent .txContent .dataPresent ) {
264
+ if (!tmpContent .txContent .dataPresent ||
265
+ !allzeroes (tmpContent .txContent .value .value , tmpContent .txContent .value .length )) {
265
266
ux_approval_tx_flow [step ++ ] = & ux_approval_amount_step ;
266
267
}
267
268
#ifdef HAVE_TRUSTED_NAME
0 commit comments