crytic / amarna

Amarna is a static-analyzer and linter for the Cairo programming language.
https://blog.trailofbits.com/2022/04/20/amarna-static-analysis-for-cairo-programs/
GNU Affero General Public License v3.0
149 stars 7 forks source link

Unused import should not be triggered for `@external`, `@view` #84

Open archseer opened 1 year ago

archseer commented 1 year ago

When using a library/preset to import & re-export public methods, i.e. https://github.com/OpenZeppelin/cairo-contracts#use-a-basic-preset the import is unused in the code but it's meant to provide a user facing API.