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
Environment (please complete the following information):
Describe the Bug
The
tracerConfigparameter ofdebug_tracedoes not support standard JSON formatTo 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
Environment (please complete the following information):