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: adds exception check for debug_setHead #2217

Merged
merged 17 commits into from
Aug 14, 2024

Conversation

bitwise-constructs
Copy link
Contributor

@bitwise-constructs bitwise-constructs commented Aug 13, 2024

What I did

adds exception check for debug_setHead when dealing with nodes that don't support it

fixes: #2215
Fixes: APE-1797

How I did it

added a cached property to provider for skipping debug_setHead restore if not supported

How to verify it

run on a forked gnosis chain

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

src/ape_node/provider.py Outdated Show resolved Hide resolved
src/ape_node/provider.py Outdated Show resolved Hide resolved
src/ape_node/provider.py Outdated Show resolved Hide resolved
@antazoey antazoey merged commit 585936f into ApeWorX:main Aug 14, 2024
15 checks 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.

RPC method debug_setHead being called during pytest execution, not working on Gnosis (chainId=100)
3 participants