Created
September 22, 2018 01:30
-
-
Save thiscaspar/1993e710996caad48e783a56c14993a2 to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.25+commit.59dbf8f1.js&optimize=false&gist=
This file contains hidden or 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.25; | |
import "https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-solidity/master/contracts/token/ERC20/ERC20Mintable.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 | |
* `StandardToken` functions. | |
*/ | |
contract BitcoinPH is ERC20Mintable { | |
// just change the following 4 variables to create your own token! | |
string public constant name = "Bitcoin Philippines"; | |
string public constant symbol = "BTCPH"; | |
uint8 public constant decimals = 18; | |
constructor (uint256 _supply) public { | |
uint256 initSupply = _supply * (10 ** uint256(decimals)); | |
mint(msg.sender, initSupply); | |
finishMinting(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment