Skip to content

Commit 4a5c0e8

Browse files
Merge pull request #966 from LedgerHQ/release/1.21.3
App hotfix 1.21.3
2 parents d7a7b30 + 4ef19d8 commit 4a5c0e8

19 files changed

Lines changed: 44 additions & 9 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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ include ./makefile_conf/chain/$(CHAIN).mk
3737

3838
APPVERSION_M = 1
3939
APPVERSION_N = 21
40-
APPVERSION_P = 2
40+
APPVERSION_P = 3
4141
APPVERSION = $(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)
4242

4343
# Application source files

src/features/signMessageEIP712/ui_logic.c

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -732,14 +732,28 @@ static bool handle_fallback_empty_calldata(const s_eip712_calldata_info *calldat
732732
} else {
733733
ui_712_set_intent_field("Empty transaction");
734734
}
735-
if (!getEthDisplayableAddress((uint8_t *) calldata_info->callee,
736-
buf,
737-
buf_size,
738-
chainConfig->chainId)) {
739-
return false;
740-
}
735+
736+
e_name_type types[] = {TN_TYPE_ACCOUNT};
737+
e_name_source sources[] = {TN_SOURCE_ENS, TN_SOURCE_LAB, TN_SOURCE_MAB};
738+
const s_trusted_name *trusted_name;
739+
741740
ui_712_set_title("To", 2);
742-
ui_712_set_value(buf, strlen(buf));
741+
if ((trusted_name = get_trusted_name(ARRAYLEN(types),
742+
types,
743+
ARRAYLEN(sources),
744+
sources,
745+
&calldata_info->chain_id,
746+
calldata_info->callee)) != NULL) {
747+
ui_712_set_value(trusted_name->name, strlen(trusted_name->name));
748+
} else {
749+
if (!getEthDisplayableAddress(calldata_info->callee,
750+
buf,
751+
buf_size,
752+
calldata_info->chain_id)) {
753+
return false;
754+
}
755+
ui_712_set_value(buf, strlen(buf));
756+
}
743757
return true;
744758
}
745759

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

0 commit comments

Comments
 (0)