eth/tracers/js: fill in refund field #25661 (#1292)

This commit is contained in:
Daniel Liu 2025-09-08 23:40:07 +08:00 committed by GitHub
parent 67efb14ff3
commit a935810d4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -258,6 +258,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 {