-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
fix: support for both input or data field in rpcCallRequest #4438
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Unfortunately we cannot use v1.13.0, as that breaks our tests. See ethereum/go-ethereum#28078 and NomicFoundation/hardhat#4438
keeping an eye on this as its blocking usage of geth v1.13+ with hardhat |
What needs to be done for this to get merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi everyone, and sorry for not responding before.
As it is right now, we cannot merge this PR for several reasons:
- There are no tests
- There doesn't seem to be an equivalent change for
eth_sendTransaction
(and I'm not sure if this change applies toeth_estimateGas
; I think it does, but since there are no tests it's hard to know) - If we accept both
input
anddata
, then a call/gas estimate/tx using both should throw an invalid input error.
Issue:
go-ethereum from version 13.0 stopped working with local hardhat node. They did a change replacing
data
toinput
field ineth_call
and other methods ethereum/go-ethereum#28078 referencing Ethereum specificationUpdate:
replaces rpcCallRequest to use
input
field instead ofdata
. Fallbacks todata
if input not set for backward compatibility.