Unverified Commit d6a12bc7 authored by Sina Mahmoodi's avatar Sina Mahmoodi Committed by GitHub

eth/tracers/js: fill in log.refund field (#25661)

For some reason, an accessor method for this field exists in JS, but
the value was never actually assigned.
parent 198fa956
......@@ -259,6 +259,7 @@ func (t *jsTracer) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, scope
log.pc = uint(pc)
log.gas = uint(gas)
log.cost = uint(cost)
log.refund = uint(t.env.StateDB.GetRefund())
log.depth = uint(depth)
log.err = err
if _, err := t.step(t.obj, t.logValue, t.dbValue); err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment