From ccb7b554dfdf80260db65cebb77b9a70f003e5db Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Thu, 1 Sep 2022 16:05:49 +0200 Subject: [PATCH] eth/tracers/js: fill in refund field --- 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 {