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

[Bug]: Can not add custom network during onboarding #23333

Closed
legobeat opened this issue Mar 6, 2024 · 2 comments · Fixed by #23388
Closed

[Bug]: Can not add custom network during onboarding #23333

legobeat opened this issue Mar 6, 2024 · 2 comments · Fixed by #23388
Labels
regression-prod-11.10.0 Regression bug that was found in production in release 11.10.0 release-11.14.0 Issue or pull request that will be included in release 11.14.0 type-bug type-security

Comments

@legobeat
Copy link
Contributor

legobeat commented Mar 6, 2024

Describe the bug

Since #20277 , the "Add custom network" and "Allow test networks" controls are disabled. This means that onboarding can not be completed without successful Infura ETH Mainnet connectivity.

Example use-cases would be using MetaMask for signing transactions on an airgapped/firewalled network with a trusted node, in scenarios where the network provider is blocking access to Infura, and in cases where the Infura endpoint is denying access or is otherwise unavailable.

Expected behavior

  1. The "Add custom network" control is enabled during initial onboarding and while wallet is otherwise not unlocked, allowing the user to connect to a custom RPC endpoint instead of the preconfigured ones.
  2. The "Allow test networks" during initial onboarding and while wallet is otherwise unlocked, allowing the user to select a preconfigured test network instead of a mainnet one.
  3. Offline onboarding should be possible - connectivity to a live network should not be required to initialize wallet.

Screenshots/Recordings

no-add-network-p.mp4

Steps to reproduce

  1. Open MetaMask in environment where connectivity to Infura is not available
  2. Wait at loading spinner until timeout and error message
  3. Click button "Switch networks"
  4. Attempt to click disabled "Add network" button

Error messages or log output

No response

Version

Present in:

Build type

main

Browser

Firefox

Operating system

Linux

Hardware wallet

No response

Additional context

No response

Severity

No response

@legobeat legobeat changed the title [Bug]: Can not switch network during onboarding [Bug]: Can not add custom network during onboarding Mar 6, 2024
@metamaskbot metamaskbot added the regression-prod-11.10.0 Regression bug that was found in production in release 11.10.0 label Mar 6, 2024
legobeat added a commit that referenced this issue Mar 13, 2024
…nectivity (#23388)

Fixes issue where custom networks are not configurable until after
wallet is unlocked.

## Related issues
- Resolves #23333 
- #22713
- Origin: #20277
@legobeat
Copy link
Contributor Author

legobeat commented Mar 13, 2024

Related:

@metamaskbot metamaskbot added the release-11.14.0 Issue or pull request that will be included in release 11.14.0 label Mar 26, 2024
@metamaskbot
Copy link
Collaborator

Missing release label release-11.14.0 on issue. Adding release label release-11.14.0 on issue, as issue is linked to PR #23388 which has this release label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression-prod-11.10.0 Regression bug that was found in production in release 11.10.0 release-11.14.0 Issue or pull request that will be included in release 11.14.0 type-bug type-security
Projects
Archived in project
2 participants