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

Low Detector: Libraries and contracts should not live in same file #735

Conversation

TilakMaddy
Copy link
Collaborator

@TilakMaddy TilakMaddy commented Sep 18, 2024

Severity: Low

Qualifications: All versions on solc

Logic:
If library contract is seen in a file that has other non-library contracts, we capture the library contract and suggest that it be moved to a different file.

Reason: Library contracts generally need floating pragmas to support a wide variety of contracts. If they are in a file same as contract, then this distinction is hard to support

No assoc. ADE

FOLLOW UP HERE 🙏 #740

@TilakMaddy TilakMaddy marked this pull request as ready for review September 18, 2024 08:46
@TilakMaddy
Copy link
Collaborator Author

We need flexibility to organize solidity contracts and libraries the way we want (also helps for security scanning and verification)

@TilakMaddy TilakMaddy closed this Sep 19, 2024
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.

1 participant