2 - Unlocked pragma
Contracts should be deployed using the same compiler version/flags with which they have been tested.
Locking the pragma (for e.g. by not using ^
in pragma solidity 0.5.10)
ensures that contracts do not accidentally get deployed using an older compiler version with unfixed bugs.
(see here)
- Solidity Pragma
- Use of
^
-> Unlocked - Testing vs Deployment
- Different Versions
- Lock Pragma
- Test -> Deploy