-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(forge): Add call tracing support #192
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brockelmore
changed the title
[WIP] Add call tracing support
feat: Add call tracing support
Dec 12, 2021
brockelmore
commented
Dec 12, 2021
brockelmore
commented
Dec 12, 2021
brockelmore
changed the title
feat: Add call tracing support
feat(forge): Add call tracing support
Dec 17, 2021
Once this issue is fixed, this should be production ready |
gakonst
reviewed
Dec 23, 2021
gakonst
approved these changes
Dec 23, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LFG
gakonst
approved these changes
Dec 23, 2021
clifton
pushed a commit
to clifton/foundry
that referenced
this pull request
Dec 27, 2021
* first pass * fixes * fmt * better fmting * updates colored prints, better dev ux, verbosity > 2 trace printing * fmt * updates * fmt * fix after master merge * fix tests post master merge * warning fixes * fmt * lots of fixes * fmt * fix * cyan color * fixes * prettier raw logs + parse setup contracts * update diff_score threshold * better printing * remove integration tests * improvements * improvements + fmt + clippy * fixes * more cleanup * cleanup and verbosity > 3 setup print * refactor printing * documentation + cleanup * fix negative number printing * fix tests to match master and fix tracing_enabled * fix unnecessary trace_index set * refactor runner tracing + tracing_enabled * nits + value printing * last nits
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a
CallTrace
struct that is built up inside a cheatcode executor. This PR tracks the status[x] Accumulates all calls
[x] Accumulates all logs
[x] Logs are correctly placed in order relative to calls (may not be possible with sputnik)
[x] Pretty print call tree
[x] Pretty print call inputs
[x] Pretty print logs
[x] Report gas
[x] Parse contract bytecode into contract name