code-423n4 / 2021-08-notional-findings

3 stars 0 forks source link

use of floating pragma #40

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

JMukesh

Vulnerability details

Impact

Contracts should be deployed with the same compiler version and flags that they have been tested with thoroughly. Locking the pragma helps to ensure that contracts do not accidentally get deployed using, for example, an outdated compiler version that might introduce bugs that affect the contract system negatively.

https://swcregistry.io/docs/SWC-103

Proof of Concept

most of contract used floating pragma

Tools Used

use fixed solidity version

Recommended Mitigation Steps

jeffywu commented 3 years ago

Duplicate of #90