Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eth_getLogs null #67

Open
0xChupaCabra opened this issue Jan 23, 2023 · 1 comment
Open

eth_getLogs null #67

0xChupaCabra opened this issue Jan 23, 2023 · 1 comment

Comments

@0xChupaCabra
Copy link

curl -X POST https://smartbch.greyh.at  -H 'Content-Type: application/json' -d  '{"method":"eth_getLogs","params":[{"fromBlock": "0x39", "toBlock": "0x40"}],"id":1,"jsonrpc":"2.0"}'

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

Normally when there are no logs the returned result is an empty object [], in this case the returned null value is not expected by libraries like ethersjs.

Expected behaviour

{"jsonrpc":"2.0","id":1,"result":[]}
@Baal19
Copy link

Baal19 commented Feb 22, 2023

Hello, it would be nice to have this problem fixed asap

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

No branches or pull requests

2 participants