Multiple Solidity pragma #22
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Handle
fatima_naz
Vulnerability details
Impact
In contracts/mocks/MockERC20.sol -
pragma solidity ^0.8.0;
It is better to use one Solidity compiler version across all contracts instead of different versions with different bugs and security checks. All the other file use 0.8.9.
Proof of Concept
https://github.com/crytic/slither/wiki/Detector-Documentation#different-pragma-directives-are-used
Tools Used
Recommended Mitigation Steps
it should be-
pragma solidity 0.8.9;
The text was updated successfully, but these errors were encountered: