// 0.5.1-c8a2
// Enable optimization
pragma solidity ^0.5.0;
import "./ERC20.sol";
import "./ERC20Detailed.sol";
/**
-
@title SimpleToken
-
@dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator.
-
Note they can later distribute these tokens as they wish using transfer and other
-
ERC20 functions.
*/
contract Token is ERC20, ERC20Detailed {
/**
- @dev Constructor that gives msg.sender all of existing tokens.
*/
constructor () public ERC20Detailed("FLASHCOIN", "FSN", 14) {
_mint(msg.sender, 30000000 * (10 ** uint256(decimals())));
}
}
// 0.5.1-c8a2
// Enable optimization
pragma solidity ^0.5.0;
import "./ERC20.sol";
import "./ERC20Detailed.sol";
/**
@title SimpleToken
@dev Very simple ERC20 Token example, where all tokens are pre-assigned to the creator.
Note they can later distribute these tokens as they wish using
transferand otherERC20functions.*/
contract Token is ERC20, ERC20Detailed {
/**
*/
constructor () public ERC20Detailed("FLASHCOIN", "FSN", 14) {
_mint(msg.sender, 30000000 * (10 ** uint256(decimals())));
}
}