Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: duplicate network validation in 12.3 #27463

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

bergeron
Copy link
Contributor

@bergeron bergeron commented Sep 27, 2024

Description

Fixes issue 27456 in 12.3.

If you try to add a new network with the same RPC URL and chain id as an existing network, the link presented in the error message does not work and throws an error:

Screen.Recording.2024-09-27.at.11.43.41.AM.mov

This link in the error message was intended for the network redesign and should stay behind the feature flag. Duplicate chain IDs are allowed in this version of network managment. So this PR makes it back into a warning like it would have been in 12.2:

Screenshot 2024-09-27 at 12 02 49 PM

There's nothing to fix in develop since it is already on the new network controller / UI

Open in GitHub Codespaces

Related issues

Fixes: #27456

Manual testing steps

  1. Try to add a new network with the same RPC URL and chain id as an existing network.

Screenshots/Recordings

Before

After

Pre-merge author checklist

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.

@bergeron bergeron requested review from a team as code owners September 27, 2024 19:04
Copy link
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.

@bergeron bergeron changed the base branch from develop to Version-v12.3.1 September 27, 2024 19:05
@bergeron bergeron changed the title Brian/network form 12 3 fix: duplicate network validation in 12.3 Sep 27, 2024
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

I had a bit of trouble at first following how this change was related to the error. But I see that the UI with the bug is only shown when this existingChainId error is triggered, which is prevented by this change.

Makes sense! LGTM

@bergeron bergeron merged commit 190572f into Version-v12.3.1 Sep 27, 2024
66 of 67 checks passed
@bergeron bergeron deleted the brian/network-form-12-3 branch September 27, 2024 19:41
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [a7fd3f5]
Page Load Metrics (1870 ± 173 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint164933991874359172
domContentLoaded159932961812350168
load164033991870361173
domInteractive128338178

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: H is not a function
4 participants