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: skip trace contract-logic errors during proxy-detection and more error-handling in eth_call #2207

Merged
merged 4 commits into from
Aug 5, 2024

Conversation

antazoey
Copy link
Member

@antazoey antazoey commented Aug 5, 2024

What I did

Background: The failing call in the test in the linked issue was actually from a proxy-check on the contract, and not one the actual project's contract logic.

fix: handle recursion error in getting a contract type when eth call fails
BUT that was actually not the main problem (but still was good to fix).

The main problem is that tracing-features, including the intense exception handling one expects from failed calls, should be skipped altogether for proxy checks, and the mostly were thankfully except in this one spot.

perf: The fixing of this bug should be a rather nice performance upgrade because this means before, all failed proxy checks were fetching contract-types and preparing traces (not calling trace RPCs but doing everything else but)

fixes: #2206

How I did it

How to verify it

Checklist

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

@antazoey antazoey marked this pull request as draft August 5, 2024 20:59
@antazoey antazoey marked this pull request as ready for review August 5, 2024 21:52
@antazoey antazoey changed the title fix: handle error getting contract during eth-call fix: skip trace contract-logic errors during proxy-detection and more error-handling in eth_call Aug 5, 2024
@antazoey antazoey merged commit e2839a0 into ApeWorX:main Aug 5, 2024
15 checks passed
@antazoey antazoey deleted the fix/recursion-error branch August 5, 2024 22:21
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.

RecursionError when running tests
2 participants