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(tracing): collect logs only if call succeeded in geth callTracer #52

Merged
merged 5 commits into from
Mar 4, 2024

Conversation

ArtificialPB
Copy link
Contributor

Logs should only be collected for calls where it and all of its parents succeeded.

This logic is ported from geth callTracer: https://github.com/ethereum/go-ethereum/blob/master/eth/tracers/native/call.go#L278-L289

@DaniPopes DaniPopes requested a review from mattsse March 4, 2024 01:28
Copy link
Contributor

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice,

I'd like to use while let Some here

src/tracing/builder/geth.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, ty!

@mattsse mattsse added the bug Something isn't working label Mar 4, 2024
@mattsse mattsse merged commit 09cb85b into paradigmxyz:main Mar 4, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants