Skip to content

fix: add warning for optimism and arbitrum goerli#8636

Merged
sahar-fehri merged 1 commit into
mainfrom
feat/Add-optimism-arbitrum-goerli-deprecation-warning
Feb 22, 2024
Merged

fix: add warning for optimism and arbitrum goerli#8636
sahar-fehri merged 1 commit into
mainfrom
feat/Add-optimism-arbitrum-goerli-deprecation-warning

Conversation

@sahar-fehri

@sahar-fehri sahar-fehri commented Feb 20, 2024

Copy link
Copy Markdown
Contributor

Description

Adds a warning when the user switches to either Arbitrum goerli or OP goerli testnet.

This also fixes the fact that once you switch to goerli network and you close the warning. Then switch to Ethereum. Then switch back to goerli, you wont be able to see the deprecation warning again.

Related issues

Fixes:
Related ticket : https://consensyssoftware.atlassian.net/browse/MMASSETS-155

Manual testing steps

  1. Go to home page
  2. Either use chainlist to add OP goerli network/Arbitrum Goerli. Or you can click on Add network manually and fill the input boxes
  3. Click switch network
  4. You should see the network deprecation warning.

Screenshots/Recordings

Before

Screen.Recording.2024-02-20.at.16.28.55.mov

After

Screen.Recording.2024-02-20.at.16.24.39.mov

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

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.

@sahar-fehri sahar-fehri requested a review from a team as a code owner February 20, 2024 15:31
@github-actions

Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/e3b336f9-0860-4775-a181-70c04f697c2a
You can also kick off another Bitrise E2E smoke test by removing and re-applying the (Run Smoke E2E) label

@tommasini

Copy link
Copy Markdown
Contributor

This also fixes the fact that once you switch to goerli network and you close the warning. Then switch to Ethereum. Then switch back to goerli, you wont be able to see the deprecation warning again.

I don't understand what's fixed here by reading the code it doesn't seem that this would change any logic on render level.

@tommasini tommasini left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tommasini

Copy link
Copy Markdown
Contributor

Can we also attach the correspondent issue if exists, please?

@gauthierpetetin gauthierpetetin added team-assets needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) and removed team-mobile-ux Mobile UX team labels Feb 20, 2024
@sahar-fehri

Copy link
Copy Markdown
Contributor Author

Can we also attach the correspondent issue if exists, please?

Dnt think there is an issue for it, here is the ticket though https://consensyssoftware.atlassian.net/browse/MMASSETS-155

@sahar-fehri sahar-fehri merged commit ed7041a into main Feb 22, 2024
@sahar-fehri sahar-fehri deleted the feat/Add-optimism-arbitrum-goerli-deprecation-warning branch February 22, 2024 08:30
@github-actions github-actions Bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Feb 22, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 22, 2024
@metamaskbot metamaskbot added the release-7.18.0 Issue or pull request that will be included in release 7.18.0 label Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-7.18.0 Issue or pull request that will be included in release 7.18.0 team-assets

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants