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

* tracing: fix minor off-by-one error

* tracers: go generate
This commit is contained in:
Martin Holst Swende 2018-06-05 09:27:07 +02:00 committed by Péter Szilágyi
parent a5237a27ea
commit 400332b99d
2 changed files with 56 additions and 15 deletions

View File

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