Created
March 27, 2018 07:46
-
-
Save johngriffin/924c8e6921dca5f7653277138895c114 to your computer and use it in GitHub Desktop.
ERC721 remix error
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.20; | |
import 'https://github.com/OpenZeppelin/zeppelin-solidity/contracts/token/ERC721/ERC721Token.sol'; | |
import 'https://github.com/OpenZeppelin/zeppelin-solidity/contracts/ownership/Ownable.sol'; | |
contract SubscriptionToken is ERC721Token, Ownable { | |
string public constant name_ = "SubscriptionToken"; | |
string public constant symbol_ = "SUB"; | |
function name() public view returns (string _name) { | |
return 'test'; | |
} | |
function symbol() public view returns (string _symbol) { | |
return 'test'; | |
} | |
function tokenURI(uint256 _tokenId) public view returns (string) { | |
return 'test'; | |
} | |
function totalSupply() public view returns (uint256) { | |
return 234; | |
} | |
function tokenOfOwnerByIndex(address _owner, uint256 _index) public view returns (uint256 _tokenId) { | |
return 234; | |
} | |
function tokenByIndex(uint256 _index) public view returns (uint256) { | |
return 234; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment