This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 536
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:
|
8 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: