Skip to content

Instantly share code, notes, and snippets.

@yunho0130
Last active July 7, 2018 05:02
Show Gist options
  • Save yunho0130/15fb8d677d04add71ad2e3a71ea31366 to your computer and use it in GitHub Desktop.
Save yunho0130/15fb8d677d04add71ad2e3a71ea31366 to your computer and use it in GitHub Desktop.
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