debug_traceTransaction returning server error when using prestateTracer
Opened this issue · 1 comments
Juuddi commented
System information
Go-quai version: sandbox RPC endpoint
OS & Version: OSX
Expected behaviour
When using debug_traceTransaction
to get a transaction trace, passing the prestateTracer
option should return a pre-state trace for the transaction.
Actual behaviour
Passing the prestateTracer
option to the method results in this error:
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32000,
"message": "TypeError: cannot read property '0x002a8cf994379232561556da89c148...' of null in server-side tracer function 'result'"
}
}
Steps to reproduce the behaviour
Send a trace request using the prestateTracer
option
{
"jsonrpc": "2.0",
"method": "debug_traceTransaction",
"params": [
"0x006200484e799b43aa324e7e7fd80458c562dc1eb303ddb4ba9bff5e371b47ae", // can replace with {{transactionHash}}
{ "tracer": "prestateTracer" } // other option is "callTracer"
],
"id": 1
}
mibuono commented
Need to rewrite debugTraceTransaction in Go before we handle this issue.