From 2db37b9471ba1e5fc61a9f1e0ceffbcc8531d6c8 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Thu, 8 Jun 2023 16:53:38 +0200 Subject: [PATCH] minor --- internal/ethapi/transfertracer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/ethapi/transfertracer.go b/internal/ethapi/transfertracer.go index a853e38e6e..4db9588783 100644 --- a/internal/ethapi/transfertracer.go +++ b/internal/ethapi/transfertracer.go @@ -36,6 +36,8 @@ type transfer struct { Value *big.Int `json:"value"` } +// tracer is a simple tracer that records all ether transfers. +// This includes tx value, call value, and self destructs. type tracer struct { transfers []transfer } @@ -48,7 +50,6 @@ func (t *tracer) CaptureStart(env *vm.EVM, from common.Address, to common.Addres if value.Cmp(common.Big0) > 0 { t.transfers = append(t.transfers, transfer{From: from, To: to, Value: value}) } - } func (t *tracer) CaptureEnd(output []byte, gasUsed uint64, err error) {