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:
Sina Mahmoodi 2022-09-02 17:08:25 +02:00 committed by GitHub
parent 198fa956f4
commit d6a12bc7b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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 {