You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linked libraries are often not desirable, but often sneak in by accidentally making a single function in the library public instead of internal. This can cause issues that are hard to track down, such as unexpected contract deploys or edge case bugs, etc). It would be nice to have a flag like enable_linked_libraries = false that can be set in foundry.toml, that causes a failure during build if any contracts make use of linked libraries
Additional context
No response
The text was updated successfully, but these errors were encountered:
yash-atreya
changed the title
feature request: config flag to disallow use of libraries with public methods
feat(config): config flag to disallow use of libraries with public methods
Jan 8, 2025
Component
Forge
Describe the feature you would like
Linked libraries are often not desirable, but often sneak in by accidentally making a single function in the library
public
instead ofinternal
. This can cause issues that are hard to track down, such as unexpected contract deploys or edge case bugs, etc). It would be nice to have a flag likeenable_linked_libraries = false
that can be set infoundry.toml
, that causes a failure during build if any contracts make use of linked librariesAdditional context
No response
The text was updated successfully, but these errors were encountered: