From 648ec70f66c46f442088dd58a6166423148f53c9 Mon Sep 17 00:00:00 2001 From: Salim TOUBAL Date: Tue, 29 Oct 2024 19:53:50 +0100 Subject: [PATCH] chore: cherry pick 12074 (#12082) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## **Description** The network names for Ethereum mainnet and Linea mainnet should be standardized as "Ethereum Mainnet" and "Linea" to align with our third-party provider. core PR: [adjust network names](https://github.com/MetaMask/core/pull/4865) ## **Related issues** Fixes: #11895 ## **Manual testing steps** 1. Move from v7.33 ( or any previous release version ) to this branch 2. Check the name of Ethereum mainnet and Linea ## **Screenshots/Recordings** ### **Before** ### **After** ## **Pre-merge author checklist** - [x] I’ve followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots. --- .../__snapshots__/index.test.tsx.snap | 12 ++++++------ .../__snapshots__/index.test.tsx.snap | 12 ++++++------ .../SecuritySettings.test.tsx.snap | 12 ++++++------ .../Wallet/__snapshots__/index.test.tsx.snap | 2 +- app/util/test/initial-background-state.json | 4 ++-- .../@metamask+controller-utils+11.3.0.patch | 18 ++++++++++++++++++ 6 files changed, 39 insertions(+), 21 deletions(-) create mode 100644 patches/@metamask+controller-utils+11.3.0.patch diff --git a/app/components/Views/OnboardingSuccess/OnboardingAssetsSettings/__snapshots__/index.test.tsx.snap b/app/components/Views/OnboardingSuccess/OnboardingAssetsSettings/__snapshots__/index.test.tsx.snap index 3b81aeecbad..b4ce8bc30e9 100644 --- a/app/components/Views/OnboardingSuccess/OnboardingAssetsSettings/__snapshots__/index.test.tsx.snap +++ b/app/components/Views/OnboardingSuccess/OnboardingAssetsSettings/__snapshots__/index.test.tsx.snap @@ -739,7 +739,7 @@ exports[`OnboardingAssetSettings should render correctly 1`] = ` "uri": "MockImage", }, }, - "name": "Mainnet", + "name": "Ethereum Mainnet", "variant": "Network", } } @@ -754,7 +754,7 @@ exports[`OnboardingAssetSettings should render correctly 1`] = ` } } testID="celldisplay" - title="Mainnet" + title="Ethereum Mainnet" > - Mainnet + Ethereum Mainnet - Linea Mainnet + Linea - Mainnet + Ethereum Mainnet - Linea Mainnet + Linea - Mainnet + Ethereum Mainnet - Linea Mainnet + Linea - Mainnet + Ethereum Mainnet