Apply suggestions from code review
This commit is contained in:
@ -387,7 +387,7 @@ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Er
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Contraint: revert if token is already minted
|
* @dev Constraint: revert if token is already minted
|
||||||
*/
|
*/
|
||||||
function _constraintNotMinted(address from, address, uint256) internal pure {
|
function _constraintNotMinted(address from, address, uint256) internal pure {
|
||||||
if (from != address(0)) {
|
if (from != address(0)) {
|
||||||
@ -396,7 +396,7 @@ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Er
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Contraint: revert if token is not yet minted
|
* @dev Constraint: revert if token is not yet minted
|
||||||
*/
|
*/
|
||||||
function _constraintMinted(address from, address, uint256 tokenId) internal pure {
|
function _constraintMinted(address from, address, uint256 tokenId) internal pure {
|
||||||
if (from == address(0)) {
|
if (from == address(0)) {
|
||||||
@ -405,7 +405,7 @@ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Er
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Contraint: check that the caller is the current owner, or approved by the current owner
|
* @dev Constraint: check that the caller is the current owner, or approved by the current owner
|
||||||
*/
|
*/
|
||||||
function _constraintApprovedOrOwner(address owner, address, uint256 tokenId) internal view {
|
function _constraintApprovedOrOwner(address owner, address, uint256 tokenId) internal view {
|
||||||
address spender = _msgSender();
|
address spender = _msgSender();
|
||||||
|
|||||||
Reference in New Issue
Block a user