-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 formatter breaks when supplying third argument #1921
Comments
Thanks for raising the issue. We'll dig in next opportunity. PRs welcome; this might be a straightforward one for interested contributors. |
@marcgarreau @banteg I've created a PR, still in draft because I am not sure about it, will happy to get feedback about it 😃 |
@banteg can you give me a snippet which reproduce the bug ? So I can test against it, thank you. |
@edd34 thanks for the PR! To get the current tests passing, it looks like you'll need to add a new request formatter here. You'll want to follow the Once those are passing, I'd add a new test to |
Hi @kclowes , it's not clear for me, I think I need first to understand what are formatter for and how/where are they applied. |
@edd34 thanks for giving this a shot initially. there was more complexity hiding in there than my first guess. i'll pick it up from your PR. |
Ok I'll read the pr afterward |
welp, this turned into something more exciting. possibly user error, but i'm getting unexpected results from Geth in my testing. i pulled in @kclowes, who reproduced them. we'll get an issue up in the geth repo to verify if its us or them. |
I just raised a geth issue here! |
Nice effort here |
What was wrong?
eth_call
supports a third optional argument which overrides state prior to a call. web3.py makes an incorrect assumption there should only be two arguments.How can it be fixed?
Make formatter aware of the third option argument for
eth_call
.The text was updated successfully, but these errors were encountered: