What changed, and why it matters
This commit simply removes one unused translation string ('ethereum__contract') and its associated references from the Trezor firmware codebase. It is a routine cleanup with no user-facing or security impact.
No action required; this is a benign cleanup commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change deletes the ‘ethereum__contract’ translation key from generated translation files, a mock file, and the English translation JSON. The commit title and message explicitly describe it as a chore to remove an unused string, and no functional code is modified.
Changed components
core/embed/rust/librust_qstr.hcore/embed/rust/src/translations/generated/translated_string.rscore/mocks/trezortranslate_keys.pyicore/translations/en.jsonInspect captured patch +0 / −24
diff --git a/core/embed/rust/librust_qstr.h b/core/embed/rust/librust_qstr.h
index 4f65f0c8a..540f67599 100644
--- a/core/embed/rust/librust_qstr.h
+++ b/core/embed/rust/librust_qstr.h
@@ -1216,7 +1216,6 @@ static void _librust_qstrs(void) {
MP_QSTR_ethereum__approve_revoke_from;
MP_QSTR_ethereum__approve_to;
MP_QSTR_ethereum__approve_unlimited_template;
- MP_QSTR_ethereum__contract;
MP_QSTR_ethereum__contract_address;
MP_QSTR_ethereum__data_size_template;
MP_QSTR_ethereum__gas_limit;
diff --git a/core/embed/rust/src/translations/generated/translated_string.rs b/core/embed/rust/src/translations/generated/translated_string.rs
index f4287518e..b8dc83abe 100644
--- a/core/embed/rust/src/translations/generated/translated_string.rs
+++ b/core/embed/rust/src/translations/generated/translated_string.rs
@@ -418,8 +418,6 @@ pub enum TranslatedString {
#[cfg(feature = "universal_fw")]
ethereum__amount_sent = 271, // "Amount sent:"
#[cfg(feature = "universal_fw")]
- ethereum__contract = 272, // {"Bolt": "Contract", "Caesar": "Contract", "Delizia": "Contract", "Eckhart": "Call contract"}
- #[cfg(feature = "universal_fw")]
ethereum__data_size_template = 273, // "Size: {0} bytes"
#[cfg(feature = "universal_fw")]
ethereum__gas_limit = 274, // "Gas limit"
@@ -1974,18 +1972,6 @@ impl TranslatedString {
#[cfg(feature = "universal_fw")]
(Self::ethereum__amount_sent, "Amount sent:"),
#[cfg(feature = "universal_fw")]
- #[cfg(feature = "layout_bolt")]
- (Self::ethereum__contract, "Contract"),
- #[cfg(feature = "universal_fw")]
- #[cfg(feature = "layout_caesar")]
- (Self::ethereum__contract, "Contract"),
- #[cfg(feature = "universal_fw")]
- #[cfg(feature = "layout_delizia")]
- (Self::ethereum__contract, "Contract"),
- #[cfg(feature = "universal_fw")]
- #[cfg(feature = "layout_eckhart")]
- (Self::ethereum__contract, "Call contract"),
- #[cfg(feature = "universal_fw")]
(Self::ethereum__data_size_template, "Size: {0} bytes"),
#[cfg(feature = "universal_fw")]
(Self::ethereum__gas_limit, "Gas limit"),
@@ -4052,8 +4038,6 @@ impl TranslatedString {
#[cfg(feature = "universal_fw")]
(Qstr::MP_QSTR_ethereum__approve_unlimited_template, Self::ethereum__approve_unlimited_template),
#[cfg(feature = "universal_fw")]
- (Qstr::MP_QSTR_ethereum__contract, Self::ethereum__contract),
- #[cfg(feature = "universal_fw")]
(Qstr::MP_QSTR_ethereum__contract_address, Self::ethereum__contract_address),
#[cfg(feature = "universal_fw")]
(Qstr::MP_QSTR_ethereum__data_size_template, Self::ethereum__data_size_template),
diff --git a/core/mocks/trezortranslate_keys.pyi b/core/mocks/trezortranslate_keys.pyi
index 26df5d228..5b6bbc38c 100644
--- a/core/mocks/trezortranslate_keys.pyi
+++ b/core/mocks/trezortranslate_keys.pyi
@@ -332,7 +332,6 @@ class TR:
ethereum__approve_revoke_from: str = "Revoke from"
ethereum__approve_to: str = "Approve to"
ethereum__approve_unlimited_template: str = "Approving unlimited amount of {0}"
- ethereum__contract: str = "Contract"
ethereum__contract_address: str = "Provider contract address"
ethereum__data_size_template: str = "Size: {0} bytes"
ethereum__gas_limit: str = "Gas limit"
diff --git a/core/translations/en.json b/core/translations/en.json
index 11720d074..0212b1682 100644
--- a/core/translations/en.json
+++ b/core/translations/en.json
@@ -364,12 +364,6 @@
"ethereum__approve_revoke_from": "Revoke from",
"ethereum__approve_to": "Approve to",
"ethereum__approve_unlimited_template": "Approving unlimited amount of {0}",
- "ethereum__contract": {
- "Bolt": "Contract",
- "Caesar": "Contract",
- "Delizia": "Contract",
- "Eckhart": "Call contract"
- },
"ethereum__contract_address": "Provider contract address",
"ethereum__data_size_template": "Size: {0} bytes",
"ethereum__gas_limit": "Gas limit",
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.