I just posted there: How to specify the version of imported OpenZeppelin Contracts? - #6 by wat but the topic was pretty old. I can’t follow properly the steps described here: https://docs.openzeppelin.com/contracts/4.x/erc20 as it doesn’t work as described on my Macbook:
- npm install @openzeppelin/contracts → only installs pragma solidity ^0.5.0 so I end up with an error
These files import other files that use a different and incompatible version of Solidity:
** contracts/GLDToken.sol (^0.8.0) imports @openzeppelin/contracts/token/ERC20/ERC20.sol (^0.5.0)**
- npm install @firstname.lastname@example.org → doesn’t work, error ‘No matching version found for @email@example.com’
anyone else with this problem?
Thanks for your help