v2-core icon indicating copy to clipboard operation
v2-core copied to clipboard

Update solidity pragma directive to ^0.7.0

Open tab00 opened this issue 5 years ago • 1 comments

Please upgrade contracts to use the latest version.

See which contracts need to be updated simply by searching: https://github.com/Uniswap/uniswap-v2-core/search?q=pragma

0.7.0 was released in July 2020 and the latest version is 0.7.2. 0.5.0 was released almost 2y ago. See the full solc release list at http://solc-bin.ethereum.org/bin/list.json .

Some contracts specify an exact solidity version, which is problematic as they won't compile. e.g. a contract having pragma solidity =0.5.16; would not compile if solc version 0.5.17 is used.

tab00 avatar Oct 02 '20 03:10 tab00

Please upgrade contracts to use the latest version.

See which contracts need to be updated simply by searching: https://github.com/Uniswap/uniswap-v2-core/search?q=pragma

0.7.0 was released in July 2020 and the latest version is 0.7.2. 0.5.0 was released almost 2y ago. See the full solc release list at http://solc-bin.ethereum.org/bin/list.json .

Some contracts specify an exact solidity version, which is problematic as they won't compile. e.g. a contract having pragma solidity =0.5.16; would not compile if solc version 0.5.17 is used.

Yes, i too have issues in using V2 router cause certain contracts have compiler version strictly set to =0.5.16; and =0.6.6;

sujithsomraaj avatar Oct 25 '20 19:10 sujithsomraaj