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.
pull/25668/head
Sina Mahmoodi 2 years ago committed by GitHub
parent 198fa956f4
commit d6a12bc7b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      eth/tracers/js/goja.go

@ -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…
Cancel
Save