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

Improve parsing of contract's comment #1734

Merged
merged 2 commits into from
Mar 10, 2023
Merged

Improve parsing of contract's comment #1734

merged 2 commits into from
Mar 10, 2023

Conversation

montyly
Copy link
Member

@montyly montyly commented Mar 9, 2023

No description provided.

@0xalpharush
Copy link
Contributor

This fixes #1677, right?

@montyly
Copy link
Member Author

montyly commented Mar 9, 2023

Yes, I actually did not notice #1667 :)

# the initial space (after *) is also not kept on every line
comments = "@title Test Contract\n@dev Test comment"
solc_select.switch_global_version("0.5.16", always_install=True)
slither = Slither("./tests/custom_comments/contract_comment.sol")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this meant to test the compact AST or should solc_force_legacy_json be used?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was not meant to test the legacy AST, the compact AST itself changed regarding the comment information. However I added an additional test for the legacy AST 7aba140

@0xalpharush 0xalpharush self-requested a review March 10, 2023 17:16
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

Successfully merging this pull request may close these issues.

2 participants