I'm trying to create a crowdsale contract based on zeppelin-solidity. I'm using the following code to create the CROWDSALE contract, as well as TOKEN contract, based on this example.
pragma solidity ^0.4.18; import 'zeppelin-solidity/contracts/token/MintableToken.sol'; import 'zeppelin-solidity/contracts/crowdsale/Crowdsale.sol'; contract DreamToken is MintableToken { string public constant name = "Dream Token"; string public constant symbol = "DMT"; uint8 public constant decimals = 18; } contract DreamTokenCrowdsale is Crowdsale { function DreamTokenCrowdsale(uint256 _startTime, uint256 _endTime, uint256 _rate, address _wallet) public Crowdsale(_startTime, _endTime, _rate, _wallet) { } function createTokenContract() internal returns (MintableToken) { return new DreamToken(); } }
The crowdsale contract is created and fully functional. I have also verified the contract in rinkeby.
However, there is something wrong with the TOKEN contract. The crowdsale contract shows that the token is created at this address but etherscan shows that there is no such address and I cannot verify the token contract.
When I send ether to the crowdsale contract address, it indeed sends the purchased tokens. But in etherscan it shows that the tokens are sent from '0x000..." address.
Can anyone suggest what am I doing wrong here?