crytic / crytic/slither

Create contract level `UsingFor` so that source mapping can be tracked

Open
#1,652 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
6.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

We need to create a contract level `UsingFor` class so that we have access to the source mapping for the directive.
https://github.com/crytic/slither/blob/4c976d5af56219eeef079e03a35009af3e03644d/slither/core/declarations/using_for_top_level.py#L16-L18
This would require creating the object here
https://github.com/crytic/slither/blob/4c976d5af56219eeef079e03a35009af3e03644d/slither/solc_parsing/declarations/contract.py#L586
This requires updating the top level object and parsing as well
https://github.com/crytic/slither/blob/4c976d5af56219eeef079e03a35009af3e03644d/slither/core/declarations/using_for_top_level.py#L10

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.