|
|
@ -12,10 +12,10 @@ import "../../token/ERC20/MintableToken.sol"; |
|
|
|
contract MintedCrowdsale is Crowdsale { |
|
|
|
contract MintedCrowdsale is Crowdsale { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @dev Overrides delivery by minting tokens upon purchase. |
|
|
|
* @dev Overrides delivery by minting tokens upon purchase. |
|
|
|
* @param _beneficiary Token purchaser |
|
|
|
* @param _beneficiary Token purchaser |
|
|
|
* @param _tokenAmount Number of tokens to be minted |
|
|
|
* @param _tokenAmount Number of tokens to be minted |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function _deliverTokens(address _beneficiary, uint256 _tokenAmount) internal { |
|
|
|
function _deliverTokens(address _beneficiary, uint256 _tokenAmount) internal { |
|
|
|
require(MintableToken(token).mint(_beneficiary, _tokenAmount)); |
|
|
|
require(MintableToken(token).mint(_beneficiary, _tokenAmount)); |
|
|
|
} |
|
|
|
} |
|
|
|