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: do not iterate over rpcUrls to load defaults #238

Closed
wants to merge 0 commits into from

Conversation

adhusson
Copy link
Contributor

Closes #232 and maybe #225.

  • Default URLs are set at construction time.
  • chain(key) returns a Chain struct. It grabs the RPC url from (descending priority):
    1. the chains mapping
    2. the configuration
    3. the default URLs
  • config loading errors other than "not found" still bubble up

I noticed 2 hours ago that it may be duplicate work with #235 but since I don't see how #235 closes #232 I'm still opening this PR. Happy to go with any fix that works.

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.

[rpc_endpoints] vars should be lazily loaded
1 participant