Multiple Solidity pragma in contracts/mocks/DummyRouter.sol #23
Labels
bug
Something isn't working
invalid
This doesn't seem right
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Handle
fatima_naz
Vulnerability details
Impact
In contracts/mocks/DummyRouter.sol
pragma solidity ^0.8.3;
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 files 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
change the line with
pragma solidity 0.8.9;
The text was updated successfully, but these errors were encountered: