Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
erc721/contracts/ERC721Metadata.sol
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
22 lines (20 sloc)
609 Bytes
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.18; | |
import './IERC721Metadata.sol'; | |
import './AssetRegistryStorage.sol'; | |
contract ERC721Metadata is AssetRegistryStorage, IERC721Metadata { | |
function name() external view returns (string) { | |
return _name; | |
} | |
function symbol() external view returns (string) { | |
return _symbol; | |
} | |
function description() external view returns (string) { | |
return _description; | |
} | |
function tokenMetadata(uint256 assetId) external view returns (string) { | |
return _assetData[assetId]; | |
} | |
function _update(uint256 assetId, string data) internal { | |
_assetData[assetId] = data; | |
} | |
} |