Skip to content

Commit

Permalink
eth/tracers: fix minor off-by-one error (ethereum#16879)
Browse files Browse the repository at this point in the history
* tracing: fix minor off-by-one error

* tracers: go generate
  • Loading branch information
holiman authored and karalabe committed Jun 5, 2018
1 parent a5237a2 commit 400332b
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 15 deletions.
2 changes: 1 addition & 1 deletion eth/tracers/internal/tracers/4byte_tracer.js
Expand Up @@ -78,7 +78,7 @@
// the final result of the tracing.
result: function(ctx) {
// Save the outer calldata also
if (ctx.input.length > 4) {
if (ctx.input.length >= 4) {
this.store(slice(ctx.input, 0, 4), ctx.input.length-4)
}
return this.ids;
Expand Down
69 changes: 55 additions & 14 deletions eth/tracers/internal/tracers/assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 400332b

Please sign in to comment.