internal/ethapi: Fix bug in opCodeWrapper usage

This commit is contained in:
Nick Johnson
2016-08-24 15:50:38 +01:00
parent a2b2c8adc9
commit 8923325d5c
2 changed files with 23 additions and 6 deletions

View File

@ -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