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

feat: add supports_tracing() calculated property to ProviderAPI and Web3ProviderAPI #1067

Merged
merged 4 commits into from Sep 22, 2022

Conversation

antazoey
Copy link
Contributor

What I did

It is nice to have a more convenient way to check if provider supports tracing. This helps me in my gas reporting efforts but I think will come in handy elsewhere, so opening it up separately.

How I did it

Check for APINotImplementedError when calling get_call_tree(). If it fails with that, no tracing. Any other result indicates a tracing implementation.

How to verify it

Launch console using various providers calling provider.supports_tracing and making sure it is expected.

Checklist

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

fubuloubu
fubuloubu previously approved these changes Sep 22, 2022
@antazoey antazoey enabled auto-merge (squash) September 22, 2022 16:24
@antazoey antazoey merged commit 5390236 into ApeWorX:main Sep 22, 2022
@antazoey antazoey deleted the feat/jules/supports-tracing-checker branch September 22, 2022 16:48
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.

None yet

2 participants