Made tokenURI external, as per the spec. (#1444)

This commit is contained in:
Nicolás Venturo
2018-10-18 16:49:46 -03:00
committed by GitHub
parent c8220aeea8
commit 5bf3907862
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ contract ERC721Metadata is ERC165, ERC721, IERC721Metadata {
* Throws if the token ID does not exist. May return an empty string.
* @param tokenId uint256 ID of the token to query
*/
function tokenURI(uint256 tokenId) public view returns (string) {
function tokenURI(uint256 tokenId) external view returns (string) {
require(_exists(tokenId));
return _tokenURIs[tokenId];
}

View File

@ -9,5 +9,5 @@ import "./IERC721.sol";
contract IERC721Metadata is IERC721 {
function name() external view returns (string);
function symbol() external view returns (string);
function tokenURI(uint256 tokenId) public view returns (string);
function tokenURI(uint256 tokenId) external view returns (string);
}