Reorder functions to prevent shadowing warning

pull/2065/head
Nicolás Venturo 5 years ago
parent 1e0f07751e
commit 88dc1ca6fc
  1. 22
      contracts/token/ERC721/ERC721Metadata.sol

@ -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.
*
@ -111,6 +100,17 @@ contract ERC721Metadata is Context, ERC165, ERC721, IERC721Metadata {
_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.
* Reverts if the token does not exist.

Loading…
Cancel
Save