Created
September 5, 2018 22:26
-
-
Save Fallenstedt/457a467f6c138e54562d6f9ee86554d6 to your computer and use it in GitHub Desktop.
Example Token
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.24; | |
import "openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol"; | |
// https://theethereum.wiki/w/index.php/ERC20_Token_Standard | |
contract CampaignToken is StandardToken { | |
string public name = "CampaignToken"; | |
string public symbol = "CT"; | |
uint8 public decimals = 5; | |
uint public INITIAL_SUPPLY = 10000; | |
constructor() public { | |
totalSupply_ = INITIAL_SUPPLY; | |
balances[msg.sender] = INITIAL_SUPPLY; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment