go-ethereum/eth/tracers
Daniel Liu fe337141c1
eth/tracers/js: fix type inconsistencies #28488 (#1343)
This change fixes two type-inconsistencies in the JS tracer:

- In most places we return byte arrays as a `Uint8Array` to the tracer. However it seems we missed doing the conversion for `ctx` fields which are passed to the tracer during `result`. They are passed as simple arrays. I think Uint8Arrays are more suitable and we should change this inconsistency. Note: this will be a breaking-change. But I believe the effect is small. If we look at our tracers we see that these fields (`ctx.from`, `ctx.to`, etc.) are used in 2 ways. Passed to `toHex` which takes both array or buffer. Or the length was measured which is the same for both types.
- The `slice` taking in `int, int` params versus `memory.slice` taking `int64, int64` params. I suggest changing `slice` types to `int64`. This should have no effect almost in any case.

Co-authored-by: Sina Mahmoodi <1591639+s1na@users.noreply.github.com>
2025-09-09 15:52:57 +08:00
..
internal/tracetest eth/tracers: add position field for callTracer logs #28389 (#1342) 2025-09-09 15:46:12 +08:00
js eth/tracers/js: fix type inconsistencies #28488 (#1343) 2025-09-09 15:52:57 +08:00
logger eth/tracers: add ReturnData in the tracer's response #27704 (#1338) 2025-09-09 15:19:36 +08:00
native eth/tracers: add position field for callTracer logs #28389 (#1342) 2025-09-09 15:46:12 +08:00
api.go eth/tracers: add txHash field on txTraceResult #27183 (#1333) 2025-09-09 14:45:46 +08:00
api_test.go eth/tracers: use slices package for sorting #27490 (#1337) 2025-09-09 15:12:22 +08:00
tracers.go eth/tracers: replace noarg fmt.Errorf with errors.New #27330 (#1335) 2025-09-09 14:59:01 +08:00
tracers_test.go eth/tracers/native: prevent panic for LOG edge-cases #26848 (#1324) 2025-09-09 11:40:55 +08:00
tracker.go eth/traces: add state limit #25812 (#1300) 2025-09-09 07:03:24 +08:00
tracker_test.go eth/traces: add state limit #25812 (#1300) 2025-09-09 07:03:24 +08:00