forked from cerc-io/plugeth
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.
This commit is contained in:
parent
198fa956f4
commit
d6a12bc7b8
@ -259,6 +259,7 @@ func (t *jsTracer) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, scope
|
|||||||
log.pc = uint(pc)
|
log.pc = uint(pc)
|
||||||
log.gas = uint(gas)
|
log.gas = uint(gas)
|
||||||
log.cost = uint(cost)
|
log.cost = uint(cost)
|
||||||
|
log.refund = uint(t.env.StateDB.GetRefund())
|
||||||
log.depth = uint(depth)
|
log.depth = uint(depth)
|
||||||
log.err = err
|
log.err = err
|
||||||
if _, err := t.step(t.obj, t.logValue, t.dbValue); err != nil {
|
if _, err := t.step(t.obj, t.logValue, t.dbValue); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user