浏览代码

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

文件差异内容过多而无法显示
+ 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;
     },
 }

部分文件因为文件数量过多而无法显示