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

eth/tracers: add ReturnData in the structLogger tracer's response #27704

Merged
merged 3 commits into from
Jul 13, 2023

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented Jul 12, 2023

This PR fixes a bug, where the tracer was used through RPC return data of calls were being reported even if user configured enableReturnData: true. Return data will be formatted as a hex string.

@jsvisa jsvisa requested a review from s1na as a code owner July 12, 2023 07:23
Copy link
Contributor

@s1na s1na left a comment

Choose a reason for hiding this comment

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

Good catch seems we're not actually returning returnData even if enabled through the RPC.

eth/tracers/logger/logger.go Outdated Show resolved Hide resolved
@holiman
Copy link
Contributor

holiman commented Jul 12, 2023 via email

Copy link
Contributor

@s1na s1na left a comment

Choose a reason for hiding this comment

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

Prefixed with 0x. LGTM

@holiman holiman added this to the 1.12.1 milestone Jul 13, 2023
@s1na s1na merged commit 1e069cf into ethereum:master Jul 13, 2023
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
The struct logger (or opcode tracer) was missing the return data field even
if this was explicitly enabled by user via `"enableReturnData": true` in the config.
This PR fixes this issue.

Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
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.

3 participants