Skip to content
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
Closed
@yijiasu-crypto

Description

@yijiasu-crypto

System info:

commit 0020e4f
OS: macOS 11.2.3 (20D91)
go version go1.16.5 darwin/amd64

Steps to reproduce:

  1. Clone https://github.com/monacohq/crypto.com-evm-chain-test
  2. git checkout develop/events
  3. Start Ethermint node
  4. 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.]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions