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: custom network would sometimes use the wrong provider class #2466

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

antazoey
Copy link
Member

What I did

This bug did not reveal itself until functionality was required on it, meaning it always was doing this but never mattered until now.

It is supposed to use the generic Node class, not GethDev, but they both come from the same provider and the order is not deterministic so sometimes it would be one or the other. However, the chain ID caching mechanism fails if it is does not use the Node class (as of #2464), so it became a bug at that point, thankfully not released yet.

fixes: #2449 (comment)

How I did it

adjust if statement to ensure right class

How to verify it

you can consistently use custom networks again

Checklist

  • All changes are completed
  • Change is covered in tests
  • Documentation is complete

@antazoey antazoey enabled auto-merge (squash) January 13, 2025 03:43
@antazoey antazoey merged commit 7f20fde into ApeWorX:main Jan 13, 2025
18 checks passed
@antazoey antazoey deleted the fix/custom-network branch January 13, 2025 14:03
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