plugeth/eth/tracers
Sina Mahmoodi bbc5db8405
eth/tracers/js: fix type inconsistencies (#28488)
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.
2023-11-28 15:00:35 +01:00
..
internal/tracetest eth/tracers: add position field for callTracer logs (#28389) 2023-11-03 10:28:27 +01:00
js eth/tracers/js: fix type inconsistencies (#28488) 2023-11-28 15:00:35 +01:00
logger eth/tracers: add ReturnData in the tracer's response (#27704) 2023-07-13 14:43:25 +02:00
native eth/tracers: add position field for callTracer logs (#28389) 2023-11-03 10:28:27 +01:00
api_test.go all: update golang/x/ext and fix slice sorting fallout (#27909) 2023-08-12 00:04:12 +02:00
api.go all: use rlp.DecodeBytes instead of rlp.Decode where possible (#27994) 2023-08-24 11:47:42 +03:00
tracers_test.go all: activate pbss as experimental feature (#26274) 2023-08-10 22:21:36 +03:00
tracers.go eth,consensus: replace noarg fmt.Errorf with errors.New (#27330) 2023-05-25 02:57:34 -04:00
tracker_test.go eth/traces: add state limit (#25812) 2022-10-06 10:48:04 +02:00
tracker.go eth/traces: add state limit (#25812) 2022-10-06 10:48:04 +02:00