-
Notifications
You must be signed in to change notification settings - Fork 43
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
Error when decoding array #19
Comments
I think, there is a bug in ex_abi/lib/abi/type_decoder.ex Lines 215 to 218 in 1feae1b
when I set IO.inspect(count) , it returns 32
|
@saneery, it seems that you trying to decode value that is wrapped in a tuple:
If you look at the:
you'll notice that the first
The correct representation is:
You can test it with:
|
@zergera Thanks for the thorough explanation of dynamic size array ABI decoding. Nevertheless,
It should be made inside the decoding method. And this is done in the recently issued 0.3.0 version of the library. I am closing this issue. |
When I try to decode an array of addresses, I get an error
On the 0.1.18 version all right:
The text was updated successfully, but these errors were encountered: