-
Notifications
You must be signed in to change notification settings - Fork 205
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
ABI decoder does not allow zero-length arrays #497
ABI decoder does not allow zero-length arrays #497
Comments
We can't use But we could modify the regex in another way to support a single 0. Though it's worth noting this type is essentially a noop since you can't store anything in a 0 length static array. |
Just made this: fabrice102/ARCs#2 |
Good point! https://en.wikipedia.org/wiki/Robustness_principle --- I think you should accept |
This is still not fixed. You should change the regexp:
|
need to look at the other SDKs as well, probably same issue & fix. |
Thank you! We should also reference #698 |
oops github is acting smart here and closed the ticket 😅 |
https://github.com/algorand/js-algorand-sdk/blob/develop/src/abi/abi_type.ts#L31
but
https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0004.md#types --- "<type>[<N>]: A fixed-length array of length N, where N >= 0. type can be any other type."
([1-9][\d]*)
should just be[\d]+
The text was updated successfully, but these errors were encountered: