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

fix: support for both input or data field in rpcCallRequest #4438

Closed
wants to merge 1 commit into from

Conversation

lsheva
Copy link

@lsheva lsheva commented Oct 4, 2023

Issue:
go-ethereum from version 13.0 stopped working with local hardhat node. They did a change replacing data to input field in eth_call and other methods ethereum/go-ethereum#28078 referencing Ethereum specification

Update:
replaces rpcCallRequest to use input field instead of data. Fallbacks to data if input not set for backward compatibility.

@changeset-bot
Copy link

changeset-bot bot commented Oct 4, 2023

⚠️ No Changeset found

Latest commit: 37a20b9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Oct 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hardhat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2023 7:46pm
hardhat-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2023 7:46pm

@marlon-wiprud
Copy link

keeping an eye on this as its blocking usage of geth v1.13+ with hardhat

@compojoom
Copy link

What needs to be done for this to get merged?
I spent half a day figuring out why my eth_calls were working fine against goerli nodes, but not against hardhat. Iit turns out that web3js by default uses input and I was ending with unrecognized selectors.

@fvictorio

Copy link
Member

@fvictorio fvictorio left a 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 to eth_estimateGas; I think it does, but since there are no tests it's hard to know)
  • If we accept both input and data, then a call/gas estimate/tx using both should throw an invalid input error.

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

Successfully merging this pull request may close these issues.

None yet

5 participants