Closed jbuice closed 4 months ago
Describe the bug Using websocket, {"id": 1, "method": "eth_subscribe", "params": ["newHeads"]} works, but returns stateRoot without 0x prefix needed by Chainlink contracts.
{"id": 1, "method": "eth_subscribe", "params": ["newHeads"]}
To Reproduce
Expected behavior A clear and concise description of what you expected to happen.
Screenshots {"jsonrpc":"2.0","method":"eth_subscription","params":{"subscription":"0x9ce59a13059e417087c02d3236a0b1cd","result":{"difficulty":"0x0","extraData":"0x10fd66619d7836f6a846d0d8762fa4f287e56a38a98465957eb6d6cad38b27ad","gasLimit":"0x7fffffff","miner":"0x0000000000000000000000000000000000000000","nonce":"0x0000000000000000","parentHash":"0x9c9fe6bf5ba572ab0479bda0fb9e32d1614a3b688baf185807d0ee80d19a146f","receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","stateRoot":"56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","gasUsed":"0x0","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","number":"0x10fd6628","timestamp":"0x65e10ba6"}}}
{"jsonrpc":"2.0","method":"eth_subscription","params":{"subscription":"0x9ce59a13059e417087c02d3236a0b1cd","result":{"difficulty":"0x0","extraData":"0x10fd66619d7836f6a846d0d8762fa4f287e56a38a98465957eb6d6cad38b27ad","gasLimit":"0x7fffffff","miner":"0x0000000000000000000000000000000000000000","nonce":"0x0000000000000000","parentHash":"0x9c9fe6bf5ba572ab0479bda0fb9e32d1614a3b688baf185807d0ee80d19a146f","receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","stateRoot":"56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","gasUsed":"0x0","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","number":"0x10fd6628","timestamp":"0x65e10ba6"}}}
Describe the bug Using websocket,
{"id": 1, "method": "eth_subscribe", "params": ["newHeads"]}
works, but returns stateRoot without 0x prefix needed by Chainlink contracts.To Reproduce
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
{"jsonrpc":"2.0","method":"eth_subscription","params":{"subscription":"0x9ce59a13059e417087c02d3236a0b1cd","result":{"difficulty":"0x0","extraData":"0x10fd66619d7836f6a846d0d8762fa4f287e56a38a98465957eb6d6cad38b27ad","gasLimit":"0x7fffffff","miner":"0x0000000000000000000000000000000000000000","nonce":"0x0000000000000000","parentHash":"0x9c9fe6bf5ba572ab0479bda0fb9e32d1614a3b688baf185807d0ee80d19a146f","receiptsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","stateRoot":"56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","transactionsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421","gasUsed":"0x0","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","number":"0x10fd6628","timestamp":"0x65e10ba6"}}}