I am trying to deploy a very simple smart contract with OpenZeppelin. It is just a basic ERC20Detailed token contract and a Crowdsale contract. I compile and migrate to Ropsten network.
The token works well.
When I try to test the Crowdsale I get an error. I use Metamask to send 1 Ropsten ETH to the Crowdsale contract. The tx fails with a Revert error:
“Warning! Error encountered during contract execution [Reverted[ :(”
Value: 1 Ether - [CANCELLED] - Value transfer did not complete from a contract.
Any help is apreciated!
GitHub code: https://github.com/DuqueKarl/CrowdsaleTRC20