Commit 400332b9 authored by Martin Holst Swende's avatar Martin Holst Swende Committed by Péter Szilágyi

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

* tracing: fix minor off-by-one error

* tracers: go generate
parent a5237a27
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
// the final result of the tracing. // the final result of the tracing.
result: function(ctx) { result: function(ctx) {
// Save the outer calldata also // 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) this.store(slice(ctx.input, 0, 4), ctx.input.length-4)
} }
return this.ids; return this.ids;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment