wallet_addEthereumChain does not overwrite the network config if chainId already exists
维护者通常 1 天内回复
@vandan 已经在做这个了。
开始于 2024年1月10日。
评估
这个 Issue 还没有评估数据。
描述
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 ?
- 主要语言
- MDX
- 星标
- 869
- 派生
- 2.1k
- 平均合并
- 58 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MetaMask/metamask-docs 的其他 Issue
-
ZKsync bridges are outdated可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
MetaMask/metamask-docs#2928 ·
维护者通常 1 天内回复
-
Notifications page switches code style without explanation (plain JS to JSX)可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 1/5 1-3 小时 新手友好度 78/100
MetaMask/metamask-docs#2895 · 2 条评论 ·
维护者通常 1 天内回复
-
Quickstart page doesn't clarify that the Functions tab uses a deprecated API可能已有人在做 @Serjik-Developer 于 93 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 78/100
MetaMask/metamask-docs#2894 · 1 条评论 ·
维护者通常 1 天内回复
-
Consolidate duplicated infrastructure content in dapp-share.mdx可能重新可做 关联的 PR 已关闭且未合并。 未关闭embedded wallets
难度 1/5 1-3 小时 新手友好度 88/100
MetaMask/metamask-docs#2859 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 10/100
MetaMask/metamask-docs#3085 ·
维护者通常 1 天内回复