This repository was archived by the owner on Apr 4, 2024. It is now read-only.
This repository was archived by the owner on Apr 4, 2024. It is now read-only.
eth_getLogs
throws error #248
Closed
Description
System info:
commit 0020e4f
OS: macOS 11.2.3 (20D91)
go version go1.16.5 darwin/amd64
Steps to reproduce:
- Clone https://github.com/monacohq/crypto.com-evm-chain-test
git checkout develop/events
- Start Ethermint node
yarn test:ethermint test/2_test_events.test.js
(If you run yarn test:ethermint test/2_test_events.test.js --verbose-rpc
you could watch the RPC call logs along the test)
Expected behavior:
eth_getLogs
should return logs of the deployed contract
Actual behavior:
RPC call (eth_getLogs) without any parameters:
> {
> "jsonrpc": "2.0",
> "id": 52,
> "method": "eth_getLogs",
> "params": [
> {
> "fromBlock": "0xb",
> "toBlock": "0x9",
> "topics": []
> }
> ]
> }
< {
< "jsonrpc": "2.0",
< "id": 52,
< "error": {
< "code": -32000,
< "message": "failed to fetch header by number (latest): rpc error: code = NotFound desc = rpc error: code = NotFound desc = block bloom not found: key not found"
< }
< }
RPC call (eth_getLogs) with contract address filter:
> {
> "jsonrpc": "2.0",
> "id": 50,
> "method": "eth_getLogs",
> "params": [
> {
> "fromBlock": "0x0",
> "toBlock": "latest",
> "address": "0x1f62f2ca004500633d79b38807dd47d27104aee5",
> "topics": []
> }
> ]
> }
< {
< "jsonrpc": "2.0",
< "id": 50,
< "error": {
< "code": -32000,
< "message": "failed to fetch header by number (latest): rpc error: code = NotFound desc = rpc error: code = NotFound desc = block bloom not found: key not found"
< }
< }
Additional info: [Include gist of relevant config, logs, etc.]
Metadata
Metadata
Assignees
Labels
No labels
Activity