Reorder functions to prevent shadowing warning
This commit is contained in:
@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user