MetaMask / MetaMask/metamask-docs
wallet_addEthereumChain does not overwrite the network config if chainId already exists
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- MDX
- Estrellas
- 861
- Forks
- 2.1k
- Merge medio
- 6 d 10 h
- PR fusionados (30 d)
- 10
Descripción
Encountering a situation where a Dapp may use wallet_addEthereumChain to switch the user's MetaMask network settings to a better performing RPC endpoint (this is for an alternative L1, i.e. not a default MetaMask chain).
Noticed that if the chainId already exists in the user's network settings in the user's MetaMask browser extension, the wallet_addEthereumChain method does not do anything, specifically it does not overwrite the existing RPC endpoint settings.
Is this on purpose, or something that could be fixed so that the method overwrite the RPC endpoint settings ?
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.