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

Missing references fix #1604

Merged
merged 3 commits into from
Feb 14, 2023
Merged

Missing references fix #1604

merged 3 commits into from
Feb 14, 2023

Conversation

bart1e
Copy link
Contributor

@bart1e bart1e commented Jan 14, 2023

There is a problem with user defined aliases (using type [...] is [...] statement) - their references list is not updated during parsing.
Also, user defined types (contracts, interfaces, etc.) have missing references when casting (TypeConversion expressions).
This PR fixes these issues and is needed to simplify code in #1592.

@0xalpharush
Copy link
Contributor

@bart1e If possible, would you mind adding a test here please? https://github.com/crytic/slither/blob/master/tests/test_source_mapping.py

@bart1e
Copy link
Contributor Author

bart1e commented Feb 1, 2023

@0xalpharush Of course, I will try to add them tomorrow.

@bart1e bart1e force-pushed the missing_references_fix branch from ff5e508 to 5b09336 Compare February 2, 2023 13:21
@montyly
Copy link
Member

montyly commented Feb 14, 2023

That's great, thanks @bart1e

@montyly montyly merged commit 04a6b0f into crytic:dev Feb 14, 2023
bart1e added a commit to bart1e/slither that referenced this pull request Feb 14, 2023
bart1e added a commit to bart1e/slither that referenced this pull request Feb 15, 2023
bart1e added a commit to bart1e/slither that referenced this pull request May 4, 2023
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.

3 participants