From c4e0990c884e23d850552f97f73e636bf5e33f1f Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi <1591639+s1na@users.noreply.github.com> Date: Fri, 2 Sep 2022 17:08:25 +0200 Subject: [PATCH] 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. --- eth/tracers/js/goja.go | 1 + 1 file changed, 1 insertion(+) diff --git a/eth/tracers/js/goja.go b/eth/tracers/js/goja.go index 8238bb603dd3..526520c7866f 100644 --- a/eth/tracers/js/goja.go +++ b/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.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 {