-
Notifications
You must be signed in to change notification settings - Fork 534
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_call does not accept EIP-1898 'blockHash' param #253
Comments
Just to comment on this. |
Hey @mrwillis and @dankostiuk, Thank you for bringing this feature up, it seems like a logical addition to the SDK. We'll definitely be adding it in the current (or next) sprint, as it's not a huge refactor. I'll ping you guys here once the PR is up and ready 👍 |
Thanks @zivkovicmilos , Related to this issue it seems like the second value of
This request fails:
|
eth_call does not accept EIP-1898 'blockHash' param
Description
We noticed some RPC errors come up while making calls to
eth_call
using the EIP-1898blockHash
param (see https://eips.ethereum.org/EIPS/eip-1898).It looks like the current unmarshaling logic fails on trying to validate the
params
arary as a result of this new field.Note that Geth 1.9.6 implements this proposal in ethereum/go-ethereum#19491.
Your environment
Ubuntu 20
0a30e47
develop
Steps to reproduce
blockHash
param:-32602 Invalid Params
error.eth_call
without this new param object still work:Expected behaviour
JSON-RPC methods should support this and all variations of request bodies. This would allow for more flexible integrations with the SDK and therefore better user adoption.
Actual behaviour
eth_call as well as the following methods return an error response when including the blockHash param as a second object within the params array:
The text was updated successfully, but these errors were encountered: