ether-camp / ethereum-harmony

DEPRECATED! Ethereum Independent Peer
GNU General Public License v3.0
253 stars 89 forks source link

calling eth_call on contracts doesnt work #122

Open nnn-gif opened 5 years ago

nnn-gif commented 5 years ago

Steps to reproduce

curl -X POST \
  http://localhost:8545/ \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -d '{
    "jsonrpc":"2.0",
    "method":"eth_call",
    "params":[{
        "to": "0x0000000000000000000000000000000000000002",
        "data":""

    }, "latest"],
    "id":8
}'

gives


{
    "jsonrpc": "2.0",
    "id": 8,
    "result": null
}

expected

{
    "jsonrpc": "2.0",
    "id": 8,
    "result": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}

PS: Sync status: Long sync