-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[safesnap] Use public node to add network to metamask #2819
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Can you use getProvider instead?
It is actually used to add a new network to metamask, we don't actually need brovider/provider here, so replaced with public nodes |
Humm, who don't have mainnet on Metamask? |
I overlooked this (twice), it is not just mainnet, should be able to add network same as safe, also not good to add our RPC/brovider to user's metamask. maybe we can just remove this code block and show an error instad? |
@bonustrack @mktcode Any thoughts on how to handle this? |
Maybe we can use RPCs from here? https://github.com/DefiLlama/chainlist/blob/main/constants/extraRpcs.json |
I will work on Safesnap a lot in the coming days. Gonna think about it but right now my feeling says it's easiest to simply point to chainlist.org. The current solution only works for MetaMask anyway. |
@ChaituVR any update on this? |
Closing for #3059 |
Related to snapshot-labs/snapshot.js#657