sherlock-audit / 2024-07-sense-points-marketplace-judging

2 stars 0 forks source link

Upbeat Berry Panther - Solidity pragma compiler should be specific (remove ^) #196

Closed sherlock-admin3 closed 2 weeks ago

sherlock-admin3 commented 2 weeks ago

Upbeat Berry Panther

Low/Info

Solidity pragma compiler should be specific (remove ^)

Summary

To prevent any unexpected issues, it is best practice to make the solidity compiler specific for your smart contracts before deployment

Root Cause

All files where pragma solidity has ^ instead of being a speific compiler version https://github.com/sherlock-audit/2024-07-sense-points-marketplace/blob/main/point-tokenization-vault/contracts/PointTokenVault.sol#L2

Internal pre-conditions

None

External pre-conditions

None

Attack Path

None

Impact

Could cause unexpected issues

PoC

pragma solidity =0.8.13

Mitigation

update ^ to = in the pragma solidity lines for all files