Skip to content
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

Fix wallet_addEthereumChain request #174

Merged
merged 2 commits into from
Nov 29, 2023
Merged

Conversation

adonesky1
Copy link
Contributor

@adonesky1 adonesky1 commented Nov 28, 2023

wallet_addEthereumChain requires chainName, nativeCurrency and rpcUrls. See that we enforce this here. Currently the spec suggests that they are optional.

@adonesky1 adonesky1 requested a review from a team as a code owner November 28, 2023 20:32
openrpc.json Outdated
"chainId"
"chainId",
"chainName",
"rpcUrls",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rpcUrls should also in the schema have minItems: 1, could also add format: uri for the url string item type

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done here: f1d5235

@adonesky1 adonesky1 requested a review from shanejonas November 29, 2023 15:56
@adonesky1 adonesky1 merged commit 7dce24c into main Nov 29, 2023
@adonesky1 adonesky1 deleted the fix-addEthereumChainParameter branch November 29, 2023 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants