-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add EIP-3326: wallet_switchEthereumChain #3326
Conversation
@rekmarks this is still a draft PR, but I see it hasn't been modified in 2 months. Are you ready for it to be reviewed and merged as a draft EIP? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EIPS/eip-3326.md
等待中 |
@rekmarks Do we have a timeline on this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
Repeating @lightclient's question here 👀 |
can confirm this is working in production though, and it makes network switching absolutely flawless. thank you! |
Hey @axic and @lightclient, sorry for the delay. As people have noted (thanks for the positive feedback!), this is already merged and in production. I think it would be straightforward to finalize. However, given the eth1 JSON-RPC API work, I'm wondering whether it's worth our time to actually merge and ultimately finalize this EIP. I'm currently out of the loop with the eth1 RPC API efforts, but is there a place in that repo for methods like this? @lightclient, are you the right person to ask about that? |
My recommendation is to convert this to a PR against https://github.com/ethereum/eth1.0-specs/blob/master/json-rpc/spec.json which is where the JSON-RPC spec now lives. Things are a bit weird since in this case this isn't actually a JSON-RPC method, but it is structured and served in the same places as JSON-RPC so that is probably the best place for it? |
I still think it is useful to get it finalised here given The linked JSON RPC spec does not even contain If all these are moved to a new repo, hopefully all of them get at least the finalised ERCs included, which is not yet the case. |
would love to see this merged 🚀 |
Hi! I'm a bot, and I wanted to automerge your PR, but couldn't because of the following issue(s):
@MicahZoltu @lightclient @Arachnid @cdetrio @Souptacular @vbuterin @nicksavers @wanderer @gcolvin @axic |
@axic alright, let's get this merged! @MicahZoltu, I agree with you that this should live in the eth1 specs repo. I'll make sure someone from MetaMask PRs the methods we've authored there. Just one question, when you say that |
FYI, the new api repo is https://github.com/ethereum/eth1.0-apis, not the specs repo anymore. With that said, I'm not sure if the |
The wallet application may arbitrarily refuse or accept the request. | ||
`null` is returned if the active chain was switched, and an error otherwise. | ||
|
||
Important cautions for implementers of this method are included in the [Security Considerations](#security-considerations) section. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this line is unnecessary, security considerations should already be an important section for implementers to read :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add EIP-3326: wallet_switchEthereumChain#3326
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add EIP-3326 wallet_switchEthereumChain #3326
* Add EIP-3326 * Add discussions-to link * Trim discussions-to link * Fix typos, edit copy
My files been updated |
Hi |
Hello
…On Tue, Mar 28, 2023, 10:36 AM mohasin1997 ***@***.***> wrote:
Hi
—
Reply to this email directly, view it on GitHub
<#3326 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AT5C7EDYUHQWLWP5WPUIRGLW6LZODANCNFSM4YUFW34Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi mohasin |
This PR adds EIP-3326, specifying the
wallet_switchEthereumChain
RPC method.Link to rendered file: https://github.com/rekmarks/EIPs/blob/3326-create/EIPS/eip-3326.md