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

Bug in read Function: Failure to Correctly Parse Complex Nested Tuples #299

Open
Ali-Y1 opened this issue Jul 18, 2023 · 1 comment
Open

Comments

@Ali-Y1
Copy link

Ali-Y1 commented Jul 18, 2023

The read function in the reader.rs file seems to exhibit incorrect behavior when dealing with complex nested tuples. The function is unable to parse the nested tuples correctly and thus returns an error.

Specifically, when input with a string representing a complex nested tuple such as "(((string,uint256),int256),uint256,int256)", the function is unable to correctly interpret and construct the intended tuple structure, resulting in an error.

This issue appears to stem from the way the function manages its internal state and iterates over the characters of the input string, which makes it difficult to accurately track and handle nested structures.

I look forward to your feedback or any suggested workarounds.

@Ali-Y1
Copy link
Author

Ali-Y1 commented Jul 19, 2023

#300 here is a pull request that resolves this issue

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

No branches or pull requests

1 participant