CoinFabrik / scout-soroban

Scout is an extensible open-source tool intended to assist Stellar Soroban smart contract developers and auditors detect common security issues and deviations from best practices.
MIT License
39 stars 3 forks source link

Improve `unsafe-unwrap` detector #332

Closed jgcrosta closed 2 months ago

jgcrosta commented 2 months ago

The hint/help message should be conditional: If the function returns Result, suggest using ok_or (or similar), if it does not return a Result, keep it as it is.