Skip to content
This repository has been archived by the owner on Feb 18, 2025. It is now read-only.

eth/tracers: make transaction trace response compatible with geth #648

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

minh-bq
Copy link
Collaborator

@minh-bq minh-bq commented Dec 13, 2024

The current transactionHash field in transaction trace response should be named txHash to be compatible with go-ethereum. This commit adds txHash instead of replacing the current transactionHash field and make them have the same value. This can help to avoid breaking change for current users of these methods since users are unlikely to use strict DisallowUnknownFields when decoding the json response.

Fixes: #647

@trantienduchn
Copy link
Contributor

trantienduchn commented Dec 13, 2024

lets wait until our users are aware of

The current transactionHash field in transaction trace response should be named
txHash to be compatible with go-ethereum. This commit adds txHash instead of
replacing the current transactionHash field and make them have the same value.
This can help to avoid breaking change for current users of these methods since
users are unlikely to use strict DisallowUnknownFields when decoding the json
response.
@minh-bq minh-bq merged commit 24d7109 into axieinfinity:master Feb 12, 2025
1 check passed
@minh-bq minh-bq deleted the fix/tracer-api branch February 12, 2025 03:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

debug_traceBlockByNumber return is not compatible to geth
3 participants