Skip to content

Commit

Permalink
eth/tracers/js: fill in log.refund field (#25661)
Browse files Browse the repository at this point in the history
For some reason, an accessor method for this field exists in JS, but
the value was never actually assigned.
  • Loading branch information
s1na authored Sep 2, 2022
1 parent 198fa95 commit d6a12bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eth/tracers/js/goja.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d6a12bc

Please sign in to comment.