Explain how baseURI is used for building the tokenURI (#2679)

This commit is contained in:
Santiago Palladino
2021-05-19 16:07:56 -03:00
committed by GitHub
parent 8ea06b75aa
commit 8ad458e955

View File

@ -98,8 +98,9 @@ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
}
/**
* @dev Base URI for computing {tokenURI}. Empty by default, can be overriden
* in child contracts.
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";