Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (23 sloc) 657 Bytes
pragma solidity ^0.4.23;
import "./Crowdsale.sol";
import "./MintableToken.sol";
* @title MintedCrowdsale
* @dev Extension of Crowdsale contract whose tokens are minted in each purchase.
* Token ownership should be transferred to MintedCrowdsale for minting.
contract MintedCrowdsale is Crowdsale {
* @dev Overrides delivery by minting tokens upon purchase.
* @param _beneficiary Token purchaser
* @param _tokenAmount Number of tokens to be minted
function _deliverTokens(
address _beneficiary,
uint256 _tokenAmount
require(MintableToken(token).mint(_beneficiary, _tokenAmount));
You can’t perform that action at this time.