From 8ad458e9556550b10f09ea9042dbff6c63d1302f Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Wed, 19 May 2021 16:07:56 -0300 Subject: [PATCH] Explain how baseURI is used for building the tokenURI (#2679) --- contracts/token/ERC721/ERC721.sol | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contracts/token/ERC721/ERC721.sol b/contracts/token/ERC721/ERC721.sol index c2445b76d..d26ee2d15 100644 --- a/contracts/token/ERC721/ERC721.sol +++ b/contracts/token/ERC721/ERC721.sol @@ -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 "";