Skip to content

Commit 3873e49

Browse files
holimankielbarry
authored andcommitted
eth/tracers: fix minor off-by-one error (ethereum#16879)
* tracing: fix minor off-by-one error * tracers: go generate
1 parent d2a38b3 commit 3873e49

File tree

2 files changed

+56
-15
lines changed

2 files changed

+56
-15
lines changed

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 55 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)