Browse Source

eth/tracers: fix unigram tracer (#22248)

Sina Mahmoodi 4 years ago
parent
commit
3c728fb129

File diff suppressed because it is too large
+ 3 - 3
eth/tracers/internal/tracers/assets.go


+ 1 - 3
eth/tracers/internal/tracers/unigram_tracer.js

@@ -36,8 +36,6 @@
     // result is invoked when all the opcodes have been iterated over and returns
     // result is invoked when all the opcodes have been iterated over and returns
     // the final result of the tracing.
     // the final result of the tracing.
     result: function(ctx) {
     result: function(ctx) {
-        if(this.nops > 0){
-            return this.hist;
-        }
+        return this.hist;
     },
     },
 }
 }

Some files were not shown because too many files changed in this diff