|
@@ -52,7 +52,7 @@ contract ERC721 is ERC165, IERC721 {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @dev Gets the balance of the specified address
|
|
|
+ * @dev Gets the balance of the specified address.
|
|
|
* @param owner address to query the balance of
|
|
|
* @return uint256 representing the amount owned by the passed address
|
|
|
*/
|
|
@@ -62,7 +62,7 @@ contract ERC721 is ERC165, IERC721 {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @dev Gets the owner of the specified token ID
|
|
|
+ * @dev Gets the owner of the specified token ID.
|
|
|
* @param tokenId uint256 ID of the token to query the owner of
|
|
|
* @return address currently marked as the owner of the given token ID
|
|
|
*/
|
|
@@ -102,7 +102,7 @@ contract ERC721 is ERC165, IERC721 {
|
|
|
|
|
|
/**
|
|
|
* @dev Sets or unsets the approval of a given operator
|
|
|
- * An operator is allowed to transfer all tokens of the sender on their behalf
|
|
|
+ * An operator is allowed to transfer all tokens of the sender on their behalf.
|
|
|
* @param to operator address to set the approval
|
|
|
* @param approved representing the status of the approval to be set
|
|
|
*/
|
|
@@ -113,7 +113,7 @@ contract ERC721 is ERC165, IERC721 {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @dev Tells whether an operator is approved by a given owner
|
|
|
+ * @dev Tells whether an operator is approved by a given owner.
|
|
|
* @param owner owner address which you want to query the approval of
|
|
|
* @param operator operator address which you want to query the approval of
|
|
|
* @return bool whether the given operator is approved by the given owner
|
|
@@ -123,9 +123,9 @@ contract ERC721 is ERC165, IERC721 {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @dev Transfers the ownership of a given token ID to another address
|
|
|
- * Usage of this method is discouraged, use `safeTransferFrom` whenever possible
|
|
|
- * Requires the msg.sender to be the owner, approved, or operator
|
|
|
+ * @dev Transfers the ownership of a given token ID to another address.
|
|
|
+ * Usage of this method is discouraged, use `safeTransferFrom` whenever possible.
|
|
|
+ * Requires the msg.sender to be the owner, approved, or operator.
|
|
|
* @param from current owner of the token
|
|
|
* @param to address to receive the ownership of the given token ID
|
|
|
* @param tokenId uint256 ID of the token to be transferred
|
|
@@ -169,7 +169,7 @@ contract ERC721 is ERC165, IERC721 {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @dev Returns whether the specified token exists
|
|
|
+ * @dev Returns whether the specified token exists.
|
|
|
* @param tokenId uint256 ID of the token to query the existence of
|
|
|
* @return bool whether the token exists
|
|
|
*/
|
|
@@ -179,7 +179,7 @@ contract ERC721 is ERC165, IERC721 {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @dev Returns whether the given spender can transfer a given token ID
|
|
|
+ * @dev Returns whether the given spender can transfer a given token ID.
|
|
|
* @param spender address of the spender to query
|
|
|
* @param tokenId uint256 ID of the token to be transferred
|
|
|
* @return bool whether the msg.sender is approved for the given token ID,
|
|
@@ -191,8 +191,8 @@ contract ERC721 is ERC165, IERC721 {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @dev Internal function to mint a new token
|
|
|
- * Reverts if the given token ID already exists
|
|
|
+ * @dev Internal function to mint a new token.
|
|
|
+ * Reverts if the given token ID already exists.
|
|
|
* @param to The address that will own the minted token
|
|
|
* @param tokenId uint256 ID of the token to be minted
|
|
|
*/
|
|
@@ -207,8 +207,8 @@ contract ERC721 is ERC165, IERC721 {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @dev Internal function to burn a specific token
|
|
|
- * Reverts if the token does not exist
|
|
|
+ * @dev Internal function to burn a specific token.
|
|
|
+ * Reverts if the token does not exist.
|
|
|
* Deprecated, use _burn(uint256) instead.
|
|
|
* @param owner owner of the token to burn
|
|
|
* @param tokenId uint256 ID of the token being burned
|
|
@@ -225,8 +225,8 @@ contract ERC721 is ERC165, IERC721 {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @dev Internal function to burn a specific token
|
|
|
- * Reverts if the token does not exist
|
|
|
+ * @dev Internal function to burn a specific token.
|
|
|
+ * Reverts if the token does not exist.
|
|
|
* @param tokenId uint256 ID of the token being burned
|
|
|
*/
|
|
|
function _burn(uint256 tokenId) internal {
|
|
@@ -255,8 +255,8 @@ contract ERC721 is ERC165, IERC721 {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @dev Internal function to invoke `onERC721Received` on a target address
|
|
|
- * The call is not executed if the target address is not a contract
|
|
|
+ * @dev Internal function to invoke `onERC721Received` on a target address.
|
|
|
+ * The call is not executed if the target address is not a contract.
|
|
|
* @param from address representing the previous owner of the given token ID
|
|
|
* @param to target address that will receive the tokens
|
|
|
* @param tokenId uint256 ID of the token to be transferred
|
|
@@ -275,7 +275,7 @@ contract ERC721 is ERC165, IERC721 {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @dev Private function to clear current approval of a given token ID
|
|
|
+ * @dev Private function to clear current approval of a given token ID.
|
|
|
* @param tokenId uint256 ID of the token to be transferred
|
|
|
*/
|
|
|
function _clearApproval(uint256 tokenId) private {
|