Hi, I am having trouble trying to compile a simple ERC20 token contract and the Crowdsale.sol doc. I had compiled my simple ERC20 token with the most current version of OpenZeppelin, however, I had to switch to OZ 2.5 to incorporate the Crowdsale.sol. Now I am getting the following errors:
I had to install @openzeppelin 2.5 locally instead of the latest version 3.x in order to run the crowdsale.sol contract. I also changed my pragmas on my two contracts to ^0.5.0 and truffle-config
However, i am getting a number of errors now which I didn’t have before:
@openzeppelin/contracts/utils/Address.sol:31:32: Warning: The "extcodehash" instruction is not supported by the VM version "byzantium" you are currently compiling for. It will be interpreted as an invalid instruction on this VM.
assembly { codehash := extcodehash(account) }
^------------------^
CompileError: /Users/me/Desktop/final-7/contracts/MyToken.sol:18:61: TypeError: Wrong argument count for modifier invocation: 2 arguments given but expected 0.
constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) public