Smartbugs fails to detect version when it's defined in less than 3 parts
yudikubota opened this issue · comments
Yudi Kubota commented
Describe the bug
Solidity allows for pragma version to be defined in less than 3 parts like ^0.5
. Smartbugs fails to detect version when this pattern is used and raises a ValueError: Invalid simple block ''
Example:
https://etherscan.io/address/0x250aa88c8f54f5e70b94214380342f0d53e42f6c#code
Platform
- SmartBugs version: 2.0.0
- Python version: 3.10.6
- OS : Ubuntu
- CPU: AMD
Gernot Salzer commented
@yudikubota Please try the most recent version of SmartBugs, either the v2.0.2 release or checkout the most recent commit. I think this bug has been fixed in commit #3c77e28. Thanks ...
Joao F. Ferreira commented
I cannot reproduce this bug with the latest version (2.0.2).
Yudi Kubota commented