Skip to content

The tracerConfig parameter of debug_trace does not support standard JSON format #4546

@blockpi019

Description

@blockpi019

Describe the Bug
The tracerConfig parameter of debug_trace does not support standard JSON format

To Reproduce
curl --location 'http://localhost:8545'
--header 'Content-Type: application/json'
--data { "jsonrpc": "2.0", "method": "debug_traceBlockByNumber", "params": [ "latest", { "tracer": "prestateTracer", "tracerConfig": { "diffMode": false, "disableCode": true, "disableStorage": false } } ], "id": 1 }
return body:
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32602,
"message": "invalid argument 1: json: cannot unmarshal object into Go struct field TraceConfig.tracerConfig of type string"
}
}
Expected Behavior
support request body with standard JSON format

Screenshots

Image

Environment (please complete the following information):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions