aboutsummaryrefslogtreecommitdiffstats
path: root/test/compilationTests/zeppelin/token/MintableToken.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/compilationTests/zeppelin/token/MintableToken.sol')
-rw-r--r--test/compilationTests/zeppelin/token/MintableToken.sol50
1 files changed, 0 insertions, 50 deletions
diff --git a/test/compilationTests/zeppelin/token/MintableToken.sol b/test/compilationTests/zeppelin/token/MintableToken.sol
deleted file mode 100644
index 24b8c807..00000000
--- a/test/compilationTests/zeppelin/token/MintableToken.sol
+++ /dev/null
@@ -1,50 +0,0 @@
-pragma solidity ^0.4.11;
-
-
-import './StandardToken.sol';
-import '../ownership/Ownable.sol';
-
-
-
-/**
- * @title Mintable token
- * @dev Simple ERC20 Token example, with mintable token creation
- * @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120
- * Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol
- */
-
-contract MintableToken is StandardToken, Ownable {
- event Mint(address indexed to, uint256 amount);
- event MintFinished();
-
- bool public mintingFinished = false;
-
-
- modifier canMint() {
- if(mintingFinished) revert();
- _;
- }
-
- /**
- * @dev Function to mint tokens
- * @param _to The address that will receive the minted tokens.
- * @param _amount The amount of tokens to mint.
- * @return A boolean that indicates if the operation was successful.
- */
- function mint(address _to, uint256 _amount) public onlyOwner canMint returns (bool) {
- totalSupply = totalSupply.add(_amount);
- balances[_to] = balances[_to].add(_amount);
- emit Mint(_to, _amount);
- return true;
- }
-
- /**
- * @dev Function to stop minting new tokens.
- * @return True if the operation was successful.
- */
- function finishMinting() public onlyOwner returns (bool) {
- mintingFinished = true;
- emit MintFinished();
- return true;
- }
-}