Skip to content

Instantly share code, notes, and snippets.

@onemouth
Created June 3, 2018 13:47
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 onemouth/f1a9930b4897b8ce304cc8a42699f149 to your computer and use it in GitHub Desktop.
Save onemouth/f1a9930b4897b8ce304cc8a42699f149 to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.23;
import "github.com/OpenZeppelin/zeppelin-solidity/contracts/token/ERC721/ERC721Token.sol";
import "github.com/OpenZeppelin/zeppelin-solidity/contracts/ownership/Ownable.sol";
contract Character is ERC721Token, Ownable {
string[10] Tokens = ["明", "月", "幾", "時", "有", "把", "酒", "問", "青", "天"];
constructor() public {
name_ = "Char";
symbol_ = "CH";
allTokens = [0,1,2,3,4,5,6,7,8,9];
for(uint i = 0; i<allTokens.length; i++){
addTokenTo(msg.sender, allTokens[i]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment