From a7d40e70e55a4ca1d8d10b062e01013d023d95bd Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Tue, 23 Apr 2024 14:00:46 +0200 Subject: [PATCH] forgot OnEnter --- eth/tracers/native/call_flat.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eth/tracers/native/call_flat.go b/eth/tracers/native/call_flat.go index 68cdb3749c..fd9b983d36 100644 --- a/eth/tracers/native/call_flat.go +++ b/eth/tracers/native/call_flat.go @@ -156,6 +156,9 @@ func newFlatCallTracer(ctx *tracers.Context, cfg json.RawMessage) (*tracers.Trac // OnEnter is called when EVM enters a new scope (via call, create or selfdestruct). func (t *flatCallTracer) OnEnter(depth int, typ byte, from common.Address, to common.Address, input []byte, gas uint64, value *big.Int) { + if t.interrupt.Load() { + return + } t.tracer.OnEnter(depth, typ, from, to, input, gas, value) if depth == 0 {