瀏覽代碼

eth/tracers: fix unigram tracer (#22248)

Sina Mahmoodi 4 年之前
父節點
當前提交
3c728fb129
共有 2 個文件被更改,包括 4 次插入6 次删除
  1. 3 3
      eth/tracers/internal/tracers/assets.go
  2. 1 3
      eth/tracers/internal/tracers/unigram_tracer.js

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
     // the final result of the tracing.
     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