Skip to content

Commit d6a12bc

Browse files
authored
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.
1 parent 198fa95 commit d6a12bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

eth/tracers/js/goja.go

+1
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ func (t *jsTracer) CaptureState(pc uint64, op vm.OpCode, gas, cost uint64, scope
259259
log.pc = uint(pc)
260260
log.gas = uint(gas)
261261
log.cost = uint(cost)
262+
log.refund = uint(t.env.StateDB.GetRefund())
262263
log.depth = uint(depth)
263264
log.err = err
264265
if _, err := t.step(t.obj, t.logValue, t.dbValue); err != nil {

0 commit comments

Comments
 (0)