【发布时间】:2017-10-04 09:44:26
【问题描述】:
这是我们的 MEG-Token-Distribution 1.0。我们需要某人的帮助。 Link for full code.
我们如何访问 mint 功能(令牌所有者是 EggithCrowdsale)?
我们如何根据 msg.value 更改汇率(如果另一个价格 > 20 ETH)?
contract EggithToken is MintableToken {
string public constant name = "EggithToken";
string public constant symbol = "MEG";
uint8 public constant decimals = 18;
}
contract EggithCrowdsale is Crowdsale {
function EggithCrowdsale(uint256 _startTime, uint256 _endTime, uint256 _rate, address _wallet)
Crowdsale(_startTime, _endTime, _rate, _wallet)
{
}
// creates the token to be sold.
// override this method to have crowdsale of a specific mintable token.
function createTokenContract() internal returns (MintableToken) {
return new EggithToken();
}
}
【问题讨论】:
标签: blockchain ethereum solidity