Last active
July 7, 2018 05:02
-
-
Save yunho0130/15fb8d677d04add71ad2e3a71ea31366 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.18; | |
// Import the MintableToken contract you just wrote. | |
import "./MintableToken.sol"; | |
/** Create contract that generates your very own custom ERC20 token with minting capabilities. | |
* You'll be "selling" the tokens this contract generates to your classmates using your crowdsale contract. | |
* Make sure to inherit functionality from the MintableToken contract. | |
* Rename the contract file to the name of your custom token (i.e. EricToken.sol or BuidlDApps.sol or RocketCoin.sol) | |
*/ | |
// Set up your contract. | |
contract HachToken is MintableToken { | |
// Define 3 public state variables: name, symbol, number of decimals. | |
string public constant name = "HashCash"; // solium-disable-line uppercase | |
string public constant symbol = "HACH"; // solium-disable-line uppercase | |
uint8 public constant decimals = 18; // solium-disable-line uppercase | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment