15,000 USDC
View results
Submission Details
Severity: low
Valid

Use a fixed version number in Solidity

Summary

It is generally recommended to use a fixed version number in Solidity rather than a version range that includes minor updates.

Vulnerability Details

The reason for this is that minor updates to a Solidity version can introduce changes that affect the behavior of your smart contract. These changes may not necessarily be backward-compatible, which means that your smart contract could break or behave unexpectedly when run on a newer minor version.

Additionally, using a fixed version number makes your code more explicit and easier to understand, as it removes any ambiguity around which version of Solidity is being used.

Tools Used

Manual Review

Recommendations

By specifying a fixed version number, you ensure that your smart contract is only compiled and deployed with a specific version of Solidity, which reduces the risk of compatibility issues and unexpected behavior.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.