Skip to content

Commit 6f73487

Browse files
holimanfirmianavan
authored andcommitted
eth/tracers: fix minor off-by-one error (ethereum#16879)
* tracing: fix minor off-by-one error * tracers: go generate
1 parent ddbe25d commit 6f73487

File tree

2 files changed

+56
-15
lines changed

2 files changed

+56
-15
lines changed

eth/tracers/internal/tracers/4byte_tracer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
// the final result of the tracing.
7979
result: function(ctx) {
8080
// Save the outer calldata also
81-
if (ctx.input.length > 4) {
81+
if (ctx.input.length >= 4) {
8282
this.store(slice(ctx.input, 0, 4), ctx.input.length-4)
8383
}
8484
return this.ids;

eth/tracers/internal/tracers/assets.go

+55-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)