Skip to content

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

@Ali-Y1

Description

@Ali-Y1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions