diff --git a/node/impl/full/eth_trace.go b/node/impl/full/eth_trace.go index feb920fa414..e1d1ee1ec58 100644 --- a/node/impl/full/eth_trace.go +++ b/node/impl/full/eth_trace.go @@ -117,7 +117,7 @@ func buildTraces(env *environment, addr []int, et *types.ExecutionTrace) error { } addr = addr[:len(addr):len(addr)] for i := range recurseInto.Subcalls { - err := buildTraces(subEnv, append(addr, env.subtraceCount), &recurseInto.Subcalls[i]) + err := buildTraces(subEnv, append(addr, subEnv.subtraceCount), &recurseInto.Subcalls[i]) if err != nil { return err }