Which Contracts to Use with solc version 0.6.6?

Hi all. I'm relatively new to smart contract development and I'm trying to play around with uniswap (v2) and openzeppelin ERC20 contracts using truffle (solc version 0.6.6).

I'm following the simple uniswap v2 example (https://uniswap.org/docs/v2/smart-contract-integration/quick-start/) but I'm running into compilation issues due to the fact that the @openzeppelin/contracts I'm using (version 4.2.0) seem to require a solidity pragma > 0.6 (^0.8 I believe).

Which version of openzeppelin contracts will compile with solc version 0.6.6?

:1234: Code to reproduce

:computer: Environment

Hi, welcome! :wave:

I think you can run this command npm i @openzeppelin/contracts@3.4.0.

That's what I was looking for. Thank you Skyge!

1 Like