mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 18:30:45 +00:00
parent
af6c09a5aa
commit
88086e820e
3 changed files with 1 additions and 3 deletions
|
|
@ -158,7 +158,6 @@ func testFlatCallTracer(tracerName string, dirPath string, t *testing.T) {
|
||||||
if !strings.HasSuffix(file.Name(), ".json") {
|
if !strings.HasSuffix(file.Name(), ".json") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
file := file // capture range variable
|
|
||||||
t.Run(camel(strings.TrimSuffix(file.Name(), ".json")), func(t *testing.T) {
|
t.Run(camel(strings.TrimSuffix(file.Name(), ".json")), func(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,6 @@ func testPrestateDiffTracer(tracerName string, dirPath string, t *testing.T) {
|
||||||
if !strings.HasSuffix(file.Name(), ".json") {
|
if !strings.HasSuffix(file.Name(), ".json") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
file := file // capture range variable
|
|
||||||
t.Run(camel(strings.TrimSuffix(file.Name(), ".json")), func(t *testing.T) {
|
t.Run(camel(strings.TrimSuffix(file.Name(), ".json")), func(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -458,7 +458,7 @@ func formatLogs(logs []StructLog) []StructLogRes {
|
||||||
}
|
}
|
||||||
formatted[index].Stack = &stack
|
formatted[index].Stack = &stack
|
||||||
}
|
}
|
||||||
if trace.ReturnData != nil && len(trace.ReturnData) > 0 {
|
if len(trace.ReturnData) > 0 {
|
||||||
formatted[index].ReturnData = hexutil.Bytes(trace.ReturnData).String()
|
formatted[index].ReturnData = hexutil.Bytes(trace.ReturnData).String()
|
||||||
}
|
}
|
||||||
if trace.Memory != nil {
|
if trace.Memory != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue