Skip to content

Commit 3d653f8

Browse files
Merge remote-tracking branch 'origin/master' into develop
2 parents 839aba5 + 4a5c0e8 commit 3d653f8

18 files changed

Lines changed: 43 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [1.21.3](../../compare/1.21.2...1.21.3) - 2026-03-17
9+
10+
### Fixed
11+
12+
- Missing trusted name matching with EIP-712 empty calldata
13+
814
## [1.21.2](../../compare/1.21.1...1.21.2) - 2026-03-03
915

1016
### Added

src/features/sign_message_eip712/ui_logic.c

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -743,14 +743,28 @@ static bool handle_fallback_empty_calldata(const s_eip712_calldata_info *calldat
743743
} else {
744744
ui_712_set_intent_field("Empty transaction");
745745
}
746-
if (!getEthDisplayableAddress((uint8_t *) calldata_info->callee,
747-
buf,
748-
buf_size,
749-
chainConfig->chainId)) {
750-
return false;
751-
}
746+
747+
e_name_type types[] = {TN_TYPE_ACCOUNT};
748+
e_name_source sources[] = {TN_SOURCE_ENS, TN_SOURCE_LAB, TN_SOURCE_MAB};
749+
const s_trusted_name *trusted_name;
750+
752751
ui_712_set_title("To", 2);
753-
ui_712_set_value(buf, strlen(buf));
752+
if ((trusted_name = get_trusted_name(ARRAYLEN(types),
753+
types,
754+
ARRAYLEN(sources),
755+
sources,
756+
&calldata_info->chain_id,
757+
calldata_info->callee)) != NULL) {
758+
ui_712_set_value(trusted_name->name, strlen(trusted_name->name));
759+
} else {
760+
if (!getEthDisplayableAddress(calldata_info->callee,
761+
buf,
762+
buf_size,
763+
calldata_info->chain_id)) {
764+
return false;
765+
}
766+
ui_712_set_value(buf, strlen(buf));
767+
}
754768
return true;
755769
}
756770

16 Bytes
Loading
374 Bytes
Loading
-703 Bytes
Loading
-957 Bytes
Loading
1.1 KB
Loading
Binary file not shown.
86 Bytes
Loading
1.91 KB
Loading

0 commit comments

Comments
 (0)