Skip to content

Commit

Permalink
fix subtrace addrs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Feb 6, 2024
1 parent fde92aa commit fdb63cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node/impl/full/eth_trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit fdb63cb

Please sign in to comment.