Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

eth_getLogs throws error #248

Closed
yijiasu-crypto opened this issue Jul 9, 2021 · 0 comments · Fixed by #258
Closed

eth_getLogs throws error #248

yijiasu-crypto opened this issue Jul 9, 2021 · 0 comments · Fixed by #258
Assignees

Comments

@yijiasu-crypto
Copy link
Contributor

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.]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants