mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 18:30:45 +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)
|
output = append(output, *frame)
|
||||||
if len(input.Calls) > 0 {
|
for i, childCall := range input.Calls {
|
||||||
for i, childCall := range input.Calls {
|
childAddr := childTraceAddress(traceAddress, i)
|
||||||
childAddr := childTraceAddress(traceAddress, i)
|
childCallCopy := childCall
|
||||||
childCallCopy := childCall
|
flat, err := flatFromNested(&childCallCopy, childAddr, convertErrs, ctx)
|
||||||
flat, err := flatFromNested(&childCallCopy, childAddr, convertErrs, ctx)
|
if err != nil {
|
||||||
if err != nil {
|
return nil, err
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
output = append(output, flat...)
|
|
||||||
}
|
}
|
||||||
|
output = append(output, flat...)
|
||||||
}
|
}
|
||||||
|
|
||||||
return output, nil
|
return output, nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue