mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
parent
fd040ec0d7
commit
a00d95bf1a
1 changed files with 7 additions and 9 deletions
|
|
@ -274,16 +274,14 @@ func flatFromNested(input *callFrame, traceAddress []int, convertErrs bool, ctx
|
|||
}
|
||||
|
||||
output = append(output, *frame)
|
||||
if len(input.Calls) > 0 {
|
||||
for i, childCall := range input.Calls {
|
||||
childAddr := childTraceAddress(traceAddress, i)
|
||||
childCallCopy := childCall
|
||||
flat, err := flatFromNested(&childCallCopy, childAddr, convertErrs, ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
output = append(output, flat...)
|
||||
for i, childCall := range input.Calls {
|
||||
childAddr := childTraceAddress(traceAddress, i)
|
||||
childCallCopy := childCall
|
||||
flat, err := flatFromNested(&childCallCopy, childAddr, convertErrs, ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
output = append(output, flat...)
|
||||
}
|
||||
|
||||
return output, nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue