MetaMask / MetaMask/metamask-extension

[Bug]: cant change chain id after rpc url added

Open
#28,396 1 comment 0 reactions 0 assignees View on GitHub
external-contributor feature-request regression-prod-12.6.0 team-assets
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

### Describe the bug

after an rpc url is set the chain id option is blanked out in edit

### Expected behavior

i can change the chain id after setting it

### Screenshots/Recordings

![Screenshot from 2024-11-10 07-28-33](https://github.com/user-attachments/assets/12b15b18-88d6-4dd3-bfdc-d0115ae21b21)

### Steps to reproduce

add localhost to network (or bring it back as default :pray: )
set it to 31337
go back in the edit ellipsis
try to set it to 1337

### Error messages or log output

_No response_

### Detection stage

In production (default)

### Version

12.6.0

### Build type

None

### Browser

Chrome

### Operating system

Linux

### Hardware wallet

_No response_

### Additional context

_No response_

### Severity

_No response_

Contributor guide

Open the contributing guide

Research direction

Start from the network edit flow described in the reproduction steps, focusing on how the RPC URL and chain ID fields are populated and updated. Reproduce the issue with localhost, first setting chain ID 31337 and then attempting to change it to 1337. Done means the chain ID remains editable after an RPC URL has been added and the new value is saved.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.