From 6da92026f7aa832a187d5ca7fa0204b493347731 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Thu, 14 Dec 2023 12:20:16 +0330 Subject: [PATCH] Fix extra delegatecall value log --- internal/ethapi/transfertracer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ethapi/transfertracer.go b/internal/ethapi/transfertracer.go index 2a7b76f55b..7489d12bfd 100644 --- a/internal/ethapi/transfertracer.go +++ b/internal/ethapi/transfertracer.go @@ -117,7 +117,7 @@ func (t *tracer) CaptureFault(pc uint64, op vm.OpCode, gas, cost uint64, scope * func (t *tracer) CaptureEnter(typ vm.OpCode, from common.Address, to common.Address, input []byte, gas uint64, value *big.Int) { t.logs = append(t.logs, make([]*types.Log, 0)) toCopy := to - if value != nil && value.Cmp(common.Big0) > 0 { + if typ != vm.DELEGATECALL && value != nil && value.Cmp(common.Big0) > 0 { t.captureTransfer(from, toCopy, value) } }