From 8d75aaa29154b7489c04a38ad7273d6634a0a9dd Mon Sep 17 00:00:00 2001 From: Ritchie Date: Thu, 6 Mar 2025 14:27:25 +0800 Subject: [PATCH 1/3] fix(core/i18n): optimize i18n text entries --- core/src/trezor/lvglui/i18n/keys.py | 6 +++--- core/src/trezor/lvglui/i18n/locales/en.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/trezor/lvglui/i18n/keys.py b/core/src/trezor/lvglui/i18n/keys.py index ad6de5335..75bcbc34a 100644 --- a/core/src/trezor/lvglui/i18n/keys.py +++ b/core/src/trezor/lvglui/i18n/keys.py @@ -18,10 +18,10 @@ BUTTON__CANCEL = 6 # Confirm BUTTON__CONFIRM = 7 -# Using a strong PIN to protects your wallet from unauthorized physical access -# . +# Using a strong PIN to protect your wallet from unauthorized physical access. CHECK__SETUP_SET_A_PIN__1 = 8 -# Keeping your PIN secured, be sure to store it separate from recovery phrase. +# Keep your PIN secure, and be sure to store it separately from your recovery +# phrase. CHECK__SETUP_SET_A_PIN__2 = 9 # Set a PIN TITLE__SET_A_PIN = 10 diff --git a/core/src/trezor/lvglui/i18n/locales/en.py b/core/src/trezor/lvglui/i18n/locales/en.py index f066f1064..babd788cb 100644 --- a/core/src/trezor/lvglui/i18n/locales/en.py +++ b/core/src/trezor/lvglui/i18n/locales/en.py @@ -8,8 +8,8 @@ "Restore Wallet", "Cancel", "Confirm", - "Using a strong PIN to protects your wallet from unauthorized physical access.", - "Keeping your PIN secured, be sure to store it separate from recovery phrase.", + "Using a strong PIN to protect your wallet from unauthorized physical access.", + "Keep your PIN secure, and be sure to store it separately from your recovery phrase.", "Set a PIN", "Enter New PIN", "Enter PIN Again", From 3752daa2e2737a2769aa3798aaf07e716fee61fa Mon Sep 17 00:00:00 2001 From: Ritchie Date: Thu, 6 Mar 2025 14:28:09 +0800 Subject: [PATCH 2/3] fix(core): remove `address_index` position limit in derivation path --- core/src/apps/common/paths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/apps/common/paths.py b/core/src/apps/common/paths.py index 77c880e75..571b36d08 100644 --- a/core/src/apps/common/paths.py +++ b/core/src/apps/common/paths.py @@ -87,7 +87,7 @@ class PathSchema: REPLACEMENTS = { "account": "0-2147483647", # origin "0-100" "change": "0,1", - "address_index": "0-1000000", + "address_index": "0-2147483647", # origin "0-1000000" } WILDCARD_RANGES = { From 20abdfc4f756e8a48af5dce7a89c9a5e7713165d Mon Sep 17 00:00:00 2001 From: Ritchie Date: Thu, 8 May 2025 09:45:03 +0800 Subject: [PATCH 3/3] ci(core): update the version of ubuntu to latest --- .github/workflows/build-classic.yml | 2 +- .github/workflows/build-mini.yml | 2 +- .github/workflows/build-static.yml | 2 +- .github/workflows/build-touch.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-classic.yml b/.github/workflows/build-classic.yml index fc8c8287f..412a770e7 100644 --- a/.github/workflows/build-classic.yml +++ b/.github/workflows/build-classic.yml @@ -7,7 +7,7 @@ on: jobs: build-classic: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: "Checkout" diff --git a/.github/workflows/build-mini.yml b/.github/workflows/build-mini.yml index c16ec3789..a019e3d74 100644 --- a/.github/workflows/build-mini.yml +++ b/.github/workflows/build-mini.yml @@ -7,7 +7,7 @@ on: jobs: build-mini: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: "Checkout" diff --git a/.github/workflows/build-static.yml b/.github/workflows/build-static.yml index 8518b332f..358b322c9 100644 --- a/.github/workflows/build-static.yml +++ b/.github/workflows/build-static.yml @@ -5,7 +5,7 @@ on: jobs: build-static: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: "Checkout" uses: actions/checkout@v4 diff --git a/.github/workflows/build-touch.yml b/.github/workflows/build-touch.yml index 51d7cb876..fbce0f5bf 100644 --- a/.github/workflows/build-touch.yml +++ b/.github/workflows/build-touch.yml @@ -7,7 +7,7 @@ on: jobs: build-touch: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: "Checkout"