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.
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.