change []byte to json.RawMessage in test

This commit is contained in:
Chris Ziogas 2024-03-26 20:00:35 +02:00
parent a4117a8337
commit 55a9f40b4e
No known key found for this signature in database
GPG key ID: 2329CF479E36E2DA

View file

@ -521,7 +521,7 @@ func testSupplyTracer(genesis *core.Genesis, gen func(*core.BlockGen)) ([]live.S
defer os.Remove(traceOutputFilename)
// Load supply tracer
tracer, err := tracers.LiveDirectory.New("supply", []byte(fmt.Sprintf(`{"path":"%s"}`, traceOutputPath)))
tracer, err := tracers.LiveDirectory.New("supply", json.RawMessage(fmt.Sprintf(`{"path":"%s"}`, traceOutputPath)))
if err != nil {
return nil, nil, fmt.Errorf("failed to create call tracer: %v", err)
}