-
Notifications
You must be signed in to change notification settings - Fork 269
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
Decoding an array type returns a tuple instead of list #192
Comments
Hey @tserg. Thanks for the submission. I do think that distinction would be nice tbh. Spitting out a tuple can confuse it as decoding as a struct. This is a pretty simple change I wouldn't mind making. I can push a PR up if there are no hesitations. Especially since we are in beta for the new major version. |
I do think the flexibility of it not needing to be validated as a python i.e. e.g. you'd need |
I think the fact that |
Almost tagged you here too @charles-cooper 😃. Thanks for popping in. Yeah I have no issues at all with heading this direction. I can put up a PR asap. |
maybe lists should be encode-able as tuples -- function args are represented as a tuple in the ABI, but often client libraries are dealing with a list of arguments and want to do something like |
What was wrong?
eth_abi.decode
of an array returns a tuple instead.Code that produced the error
Expected Result
Shouldn't the result be a list instead?
Environment
How can it be fixed?
Fill this section in if you know how this could or should be fixed.
The text was updated successfully, but these errors were encountered: