Skip to content

Commit 676dacf

Browse files
committed
eth/tracers: avoid returning nil in unigram tracer
1 parent 2e5d141 commit 676dacf

File tree

2 files changed

+17
-24
lines changed

2 files changed

+17
-24
lines changed

eth/tracers/internal/tracers/assets.go

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

eth/tracers/internal/tracers/unigram_tracer.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
// result is invoked when all the opcodes have been iterated over and returns
3737
// the final result of the tracing.
3838
result: function(ctx) {
39-
if(this.nops > 0){
40-
return this.hist;
41-
}
39+
return this.hist;
4240
},
4341
}

0 commit comments

Comments
 (0)