|
@@ -111,9 +111,9 @@ contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {
|
|
|
|
|
|
/**
|
|
|
* @dev Approves another address to transfer the given token ID
|
|
|
- * @dev The zero address indicates there is no approved address.
|
|
|
- * @dev There can only be one approved address per token at a given time.
|
|
|
- * @dev Can only be called by the token owner or an approved operator.
|
|
|
+ * The zero address indicates there is no approved address.
|
|
|
+ * There can only be one approved address per token at a given time.
|
|
|
+ * Can only be called by the token owner or an approved operator.
|
|
|
* @param _to address to be approved for the given token ID
|
|
|
* @param _tokenId uint256 ID of the token to be approved
|
|
|
*/
|
|
@@ -137,7 +137,7 @@ contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {
|
|
|
|
|
|
/**
|
|
|
* @dev Sets or unsets the approval of a given operator
|
|
|
- * @dev 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
|
|
|
*/
|
|
@@ -166,8 +166,8 @@ contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {
|
|
|
|
|
|
/**
|
|
|
* @dev Transfers the ownership of a given token ID to another address
|
|
|
- * @dev Usage of this method is discouraged, use `safeTransferFrom` whenever possible
|
|
|
- * @dev Requires the msg sender to be the owner, approved, or operator
|
|
|
+ * 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
|
|
@@ -192,11 +192,12 @@ contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {
|
|
|
|
|
|
/**
|
|
|
* @dev Safely transfers the ownership of a given token ID to another address
|
|
|
- * @dev If the target address is a contract, it must implement `onERC721Received`,
|
|
|
- * which is called upon a safe transfer, and return the magic value
|
|
|
- * `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`; otherwise,
|
|
|
- * the transfer is reverted.
|
|
|
- * @dev Requires the msg sender to be the owner, approved, or operator
|
|
|
+ * If the target address is a contract, it must implement `onERC721Received`,
|
|
|
+ * which is called upon a safe transfer, and return the magic value
|
|
|
+ * `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`; otherwise,
|
|
|
+ * the transfer is reverted.
|
|
|
+ *
|
|
|
+ * 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
|
|
@@ -215,11 +216,11 @@ contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {
|
|
|
|
|
|
/**
|
|
|
* @dev Safely transfers the ownership of a given token ID to another address
|
|
|
- * @dev If the target address is a contract, it must implement `onERC721Received`,
|
|
|
- * which is called upon a safe transfer, and return the magic value
|
|
|
- * `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`; otherwise,
|
|
|
- * the transfer is reverted.
|
|
|
- * @dev Requires the msg sender to be the owner, approved, or operator
|
|
|
+ * If the target address is a contract, it must implement `onERC721Received`,
|
|
|
+ * which is called upon a safe transfer, and return the magic value
|
|
|
+ * `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))`; otherwise,
|
|
|
+ * the transfer is reverted.
|
|
|
+ * 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
|
|
@@ -267,7 +268,7 @@ contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {
|
|
|
|
|
|
/**
|
|
|
* @dev Internal function to mint a new token
|
|
|
- * @dev Reverts if the given token ID already exists
|
|
|
+ * 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 by the msg.sender
|
|
|
*/
|
|
@@ -279,7 +280,7 @@ contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {
|
|
|
|
|
|
/**
|
|
|
* @dev Internal function to burn a specific token
|
|
|
- * @dev Reverts if the token does not exist
|
|
|
+ * Reverts if the token does not exist
|
|
|
* @param _tokenId uint256 ID of the token being burned by the msg.sender
|
|
|
*/
|
|
|
function _burn(address _owner, uint256 _tokenId) internal {
|
|
@@ -290,7 +291,7 @@ contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {
|
|
|
|
|
|
/**
|
|
|
* @dev Internal function to clear current approval of a given token ID
|
|
|
- * @dev Reverts if the given address is not indeed the owner of the token
|
|
|
+ * Reverts if the given address is not indeed the owner of the token
|
|
|
* @param _owner owner of the token
|
|
|
* @param _tokenId uint256 ID of the token to be transferred
|
|
|
*/
|
|
@@ -326,7 +327,7 @@ contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {
|
|
|
|
|
|
/**
|
|
|
* @dev Internal function to invoke `onERC721Received` on a target address
|
|
|
- * @dev The call is not executed if the target address is not a contract
|
|
|
+ * 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
|