Skip to content

Instantly share code, notes, and snippets.

@Fallenstedt
Created September 5, 2018 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fallenstedt/457a467f6c138e54562d6f9ee86554d6 to your computer and use it in GitHub Desktop.
Save Fallenstedt/457a467f6c138e54562d6f9ee86554d6 to your computer and use it in GitHub Desktop.
Example Token
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