aboutsummaryrefslogtreecommitdiffstats
path: root/internal/ethapi/tracer.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/ethapi/tracer.go')
-rw-r--r--internal/ethapi/tracer.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/ethapi/tracer.go b/internal/ethapi/tracer.go
index 37cb7ec36..16ec6ebf0 100644
--- a/internal/ethapi/tracer.go
+++ b/internal/ethapi/tracer.go
@@ -284,8 +284,10 @@ func (jst *JavascriptTracer) CaptureState(env vm.Environment, pc uint64, op vm.O
jst.stack.stack = stack
jst.db.db = env.Db()
+ ocw := &opCodeWrapper{op}
+
jst.log["pc"] = pc
- jst.log["op"] = &opCodeWrapper{op}
+ jst.log["op"] = ocw.toValue(jst.vm)
jst.log["gas"] = gas.Int64()
jst.log["gasPrice"] = cost.Int64()
jst.log["memory"] = jst.memvalue