File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
src/features/signMessageEIP712 Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -298,12 +298,14 @@ bool ui_712_review_struct(const s_struct_712 *struct_ptr) {
298298bool ui_712_message_hash (void ) {
299299 const char * title = "Message hash" ;
300300
301- ui_712_set_title (title , strlen (title ));
302- array_bytes_string (strings .tmp .tmp ,
303- sizeof (strings .tmp .tmp ),
304- tmpCtx .messageSigningContext712 .messageHash ,
305- KECCAK256_HASH_BYTESIZE );
306- ui_712_set_value (NULL , 0 );
301+ if (!N_storage .displayHash ) {
302+ ui_712_set_title (title , strlen (title ));
303+ array_bytes_string (strings .tmp .tmp ,
304+ sizeof (strings .tmp .tmp ),
305+ tmpCtx .messageSigningContext712 .messageHash ,
306+ KECCAK256_HASH_BYTESIZE );
307+ ui_712_set_value (NULL , 0 );
308+ }
307309 ui_ctx -> end_reached = true;
308310 return ui_712_redraw_generic_step ();
309311}
You can’t perform that action at this time.
0 commit comments