Impact: This issue can lead to unexpected behavior if the compiler version used changes in the future. While the code may work as expected with the specified version range (e.g., ^0.8.23
), the pragma can allow the contract to compile with newer versions that might introduce breaking changes or unexpected behavior. This can result in subtle bugs or vulnerabilities that are difficult to detect. Furthermore, using an imprecise version can make it harder to verify the contract's security and functionality with specific compiler version
Recommended Mitigation: Consider using a specific version of Solidity in your contracts instead of a wide version. For example, instead of pragma solidity ^0.8.23
;, use pragma solidity 0.8.23
;
Floating pragma usage could lead to compilation inconsistencies
Floating pragma usage could lead to compilation inconsistencies
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.