# Which Contracts to Use with solc version 0.6.6?

**URL:** <https://forum.openzeppelin.com/t/which-contracts-to-use-with-solc-version-0-6-6/13029>\
**Category:** Contracts\
**Tags:** erc20\
**Created:** [July 25, 2021, 2:20pm UTC](https://forum.openzeppelin.com/t/which-contracts-to-use-with-solc-version-0-6-6/13029 "2021-07-25T14:20:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![XSYS](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/xsys/32/7837_2.png) [@XSYS](https://forum.openzeppelin.com/u/XSYS)\
**Post date:** [July 25, 2021, 2:20pm UTC](https://forum.openzeppelin.com/t/which-contracts-to-use-with-solc-version-0-6-6/13029/1 "2021-07-25T14:20:21Z")

</div>

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/](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?

#### 🔢 Code to reproduce

```auto

```

#### 💻 Environment

---

<div class="post-metadata">

**Author:** ![Skyge](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/skyge/32/343_2.png) [@Skyge](https://forum.openzeppelin.com/u/Skyge)\
**Post date:** [July 26, 2021, 2:04am UTC](https://forum.openzeppelin.com/t/which-contracts-to-use-with-solc-version-0-6-6/13029/2 "2021-07-26T02:04:56Z")

</div>

Hi, welcome! 👋

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

---

<div class="post-metadata">

**Author:** ![XSYS](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/xsys/32/7837_2.png) [@XSYS](https://forum.openzeppelin.com/u/XSYS)\
**Post date:** [July 26, 2021, 4:41pm UTC](https://forum.openzeppelin.com/t/which-contracts-to-use-with-solc-version-0-6-6/13029/3 "2021-07-26T16:41:42Z")

</div>

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