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

evm get logs without topics not return any logs #291

Closed
vldm opened this issue Apr 8, 2022 · 0 comments · Fixed by #373
Closed

evm get logs without topics not return any logs #291

vldm opened this issue Apr 8, 2022 · 0 comments · Fixed by #373

Comments

@vldm
Copy link
Collaborator

vldm commented Apr 8, 2022

Problem

requests.post("https://evmexplorer.velas.com/rpc", data='{{"method":"eth_getLogs","params":[{{"fromBlock":"{0}", "toBlock":"{1}"}}],"id":1,"jsonrpc":"2.0"}}'.format(hex(29876484), hex(29876484)), headers={'Content-Type': 'application/json'}).json()
{'jsonrpc': '2.0', 'result': [], 'id': 1}

Proposed Solution

Its already exist a workaround of setting topics to [null]
So empty topics should work as this array

@gBaGu gBaGu linked a pull request Oct 6, 2022 that will close this issue
@vldm vldm closed this as completed in #373 Oct 13, 2022
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

Successfully merging a pull request may close this issue.

1 participant