Reorder functions to prevent shadowing warning

This commit is contained in:
Nicolás Venturo
2020-01-24 14:56:17 -03:00
parent 1e0f07751e
commit 88dc1ca6fc

View File

@ -76,17 +76,6 @@ contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata {
} }
} }
/**
* @dev Returns the base URI set via {_setBaseURI}. This will be
* automatically added as a preffix in {tokenURI} to each token's URI, when
* they are non-empty.
*
* _Available since v2.5.0._
*/
function baseURI() external view returns (string memory) {
return _baseURI;
}
/** /**
* @dev Internal function to set the token URI for a given token. * @dev Internal function to set the token URI for a given token.
* *
@ -111,6 +100,17 @@ contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata {
_baseURI = baseURI; _baseURI = baseURI;
} }
/**
* @dev Returns the base URI set via {_setBaseURI}. This will be
* automatically added as a preffix in {tokenURI} to each token's URI, when
* they are non-empty.
*
* _Available since v2.5.0._
*/
function baseURI() external view returns (string memory) {
return _baseURI;
}
/** /**
* @dev Internal function to burn a specific token. * @dev Internal function to burn a specific token.
* Reverts if the token does not exist. * Reverts if the token does not exist.