From fdb63cb17129a3be7afe390cd074c89843cc795d Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 5 Feb 2024 19:38:20 -0800 Subject: [PATCH] fix subtrace addrs --- node/impl/full/eth_trace.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/impl/full/eth_trace.go b/node/impl/full/eth_trace.go index 1cf47544903..feb920fa414 100644 --- a/node/impl/full/eth_trace.go +++ b/node/impl/full/eth_trace.go @@ -115,8 +115,9 @@ func buildTraces(env *environment, addr []int, et *types.ExecutionTrace) error { isEVM: builtinactors.IsEvmActor(recurseInto.InvokedActor.State.Code), traces: env.traces, } + addr = addr[:len(addr):len(addr)] for i := range recurseInto.Subcalls { - err := buildTraces(subEnv, append(addr[:len(addr):len(addr)], i), &recurseInto.Subcalls[i]) + err := buildTraces(subEnv, append(addr, env.subtraceCount), &recurseInto.Subcalls[i]) if err != nil { return err }