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

Add support for fetching chainIds from all providers at once #30

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

jagerman
Copy link
Member

To be used in oxen-core to verify that all configured providers are on the proper network during startup.

  • Unifies code between getAllHeights, getAllChainIds which are pretty much identical.
  • Renames/redirects the current getNetworkChainId to getChainId and updates it to accesses via the eth_chainId endpoint rather than the ETH-deprecated net_version endpoint.

To be used in oxen-core to verify that all configured providers are on
the proper network.

- Unifies code between getAllHeights, getAllChainIds which are pretty
  much identical.
- Renames/redirects the current `getNetworkChainId` to `getChainId` and
  updates it to accesses via the `eth_chainId` endpoint rather than the
  ETH-deprecated `net_version` endpoint.
@darcys22
Copy link
Collaborator

LGTM

@darcys22 darcys22 merged commit 33b31a9 into oxen-io:master Aug 19, 2024
1 check passed
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