Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

wallet_addEthereumChain does not overwrite the network config if chainId already exists

Abierto
#421 4 comentarios 1 reacción 1 asignado Ver en GitHub

Los mantenedores suelen responder en 2 días

@vandan ya está trabajando en esto.

Desde el 10/1/2024.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

team-wallet-api-platform wallet

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 ?

Lenguaje dominante
MDX
Estrellas
865
Forks
2.1k
Merge medio
2 d 22 h
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de MetaMask/metamask-docs

Todos los issues de MetaMask/metamask-docs

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.