Every Solidity file specifies in the header a version number of the format pragma solidity ^0.8.0. The caret (^) before the version number implies an unlocked pragma, meaning that the compiler will use the specified version or above.
It’s usually a good idea to pin a specific version to know what compiler bug fixes and optimizations were enabled at the time of compiling the contract.
Email address
mail@cmichel.io
Handle
@cmichelio
Eth address
0x6823636c2462cfdcD8d33fE53fBCD0EdbE2752ad
Vulnerability details
Every Solidity file specifies in the header a version number of the format
pragma solidity ^0.8.0
. The caret (^
) before the version number implies an unlocked pragma, meaning that the compiler will use the specified version or above.It’s usually a good idea to pin a specific version to know what compiler bug fixes and optimizations were enabled at the time of compiling the contract.
Impact
Recommended mitigation steps
Pin the compiler versions.