unicornultrafoundation / go-u2u

Implementation of U2U Network in Golang
https://u2u.xyz
GNU Lesser General Public License v3.0
4 stars 3 forks source link

RPC trace_filter returns weird format #67

Closed rameight closed 9 months ago

rameight commented 9 months ago

RPC trace_filter returns weird format. Graph-node cannot understand it. Returned JSON:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
        {
            "action": {
                "from": "0x0000000000000000000000000000000000000000",
                "to": "0xfc00face00000000000000000000000000000000",
                "value": "0x0",
                "gas": "0x0"
            },
            "blockHash": "0x00000d34000000fbfa3a7612f87ed1e83915cc165a0597c0c4a240a69a2ad7a8",
            "blockNumber": 772242,
            "error": "Reverted",
            "subtraces": 0,
            "traceAddress": [],
            "transactionHash": "0x477285f782f6d9e50db96078c003087d4db6ab0b4bb55daf5c180fa1c70f1c55",
            "transactionPosition": 0,
            "type": "empty"
        }
     ]
}

Expected JSON:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
        {
            "action": {
                "callType": "call",
                "from": "0x3b0b3c690c0f7702624216de223f4e465a570fa3",
                "to": "0xfc00face00000000000000000000000000000000",
                "value": "0x0",
                "gas": "0x0",
                "input": "0x"
            },
            "blockHash": "0x00000d34000003614f3cc2db884bebc4780909fa3b3eb2621d4a2aebf48af075",
            "blockNumber": 772287,
            "error": "sfc tx",
            "subtraces": 0,
            "traceAddress": [],
            "transactionHash": "0xaca8f64e7da6688cb6b684a215fae368c6742d1d31923559daa688494a268513",
            "transactionPosition": 0,
            "type": "call"
        }
    ]
 }