plugeth/eth/tracers/js
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/tracers eth/tracers, core/vm: remove time from trace output and tracing interface (#26291) 2022-12-05 16:57:47 +01:00
bigint.go eth/tracers: package restructuring (#23857) 2021-11-09 12:09:35 +01:00
goja.go eth/tracers/js: fix type inconsistencies (#28488) 2023-11-28 15:00:35 +01:00
tracer_test.go params: remove EIP150Hash from chainconfig (#27087) 2023-04-18 03:49:09 -04:00