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: trace API fixes #2093

Merged
merged 6 commits into from
May 17, 2024
Merged

Conversation

antazoey
Copy link
Member

@antazoey antazoey commented May 15, 2024

What I did

As I was working on ape-foundry feat/08 support, some things have come up with the TraceAPI refactor:

fix: during trace enrichment, handle if the returnvalue is a custom revert message
fix: make stream_request available to all Web3Provider (switch base-class it is defined in)
fix: in Trace.revert_message, handle the first fix but checking if revert message already present in enriched call, use that if that is the case
fix: issues where custom errors werent working great
fix: issue where gas was not added to top levels calls when using structLogs approach for call trees

How I did it

How to verify it

Tests are coming for core, but with these changes, ape-foundry is able to pass its full test suite

Screenshot 2024-05-15 at 14 11 19

Checklist

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

@antazoey antazoey changed the title fix: trace stuff fix: trace API fixes May 15, 2024
@antazoey antazoey marked this pull request as ready for review May 16, 2024 14:44
@antazoey antazoey marked this pull request as draft May 16, 2024 15:40
@antazoey antazoey marked this pull request as ready for review May 17, 2024 13:19
@antazoey antazoey merged commit d09b3e5 into ApeWorX:feat/08 May 17, 2024
14 checks passed
@antazoey antazoey deleted the fix/more-trace-fixes branch May 17, 2024 13:19
antazoey added a commit that referenced this pull request May 21, 2024
antazoey added a commit that referenced this pull request May 31, 2024
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