celo-org / celo-blockchain

Official repository for the golang Celo Blockchain
https://celo.org
GNU Lesser General Public License v3.0
560 stars 198 forks source link

prestateTracer TypeError exception #2188

Open qk-santi opened 1 year ago

qk-santi commented 1 year ago

Expected Behavior

Debug output for tx of prestateTracer

Actual Behavior

One of the transactions in the block raises an exception in prestateTracer

{
    "error": "TypeError: cannot read property 'storage' of undefined    in server-side tracer function 'step'"
},

Steps to reproduce the behavior

curl http://<celo-endpoint>:8545/ \
--header 'Content-Type: application/json' --data '{"jsonrpc": "2.0", "method": "debug_traceBlockByNumber", "params": ["0x121EAC2", {"tracer": "prestateTracer", "tracerConfig": {"diffMode": true}, "timeout": "600s"}], "id": 1}'

System Information

Client version:

./geth version

Version: 1.8.0-stable

Chain/Network: Mainnet