Skip to content

Instantly share code, notes, and snippets.

@johngriffin
Created March 27, 2018 07:46
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 johngriffin/924c8e6921dca5f7653277138895c114 to your computer and use it in GitHub Desktop.
Save johngriffin/924c8e6921dca5f7653277138895c114 to your computer and use it in GitHub Desktop.
ERC721 remix error
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