aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/contracts/test/Mintable.sol
blob: 257dca7053dd17af551d257bcaeef7b7206ec07c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pragma solidity 0.4.11;

import "./../tokens/ERC20Token.sol";
import "./../base/SafeMath.sol";

/*
 * Mintable
 * Base contract that creates a mintable UnlimitedAllowanceToken
 */
contract Mintable is ERC20Token, SafeMath {
    function mint(uint _value) {
        require(_value <= 100000000000000000000);
        balances[msg.sender] = safeAdd(_value, balances[msg.sender]);
        totalSupply = safeAdd(totalSupply, _value);
    }
}