eth/tracers: fix minor off-by-one error (#16879)

* tracing: fix minor off-by-one error

* tracers: go generate
pull/16882/head
Martin Holst Swende 7 years ago committed by Péter Szilágyi
parent a5237a27ea
commit 400332b99d
  1. 2
      eth/tracers/internal/tracers/4byte_tracer.js
  2. 65
      eth/tracers/internal/tracers/assets.go

@ -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;

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save