|
@@ -37,7 +37,6 @@ contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {
|
|
|
{
|
|
|
// register the supported interfaces to conform to ERC721 via ERC165
|
|
|
_registerInterface(InterfaceId_ERC721);
|
|
|
- _registerInterface(InterfaceId_ERC721Exists);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -61,16 +60,6 @@ contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {
|
|
|
return owner;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * @dev Returns whether the specified token exists
|
|
|
- * @param _tokenId uint256 ID of the token to query the existence of
|
|
|
- * @return whether the token exists
|
|
|
- */
|
|
|
- function exists(uint256 _tokenId) public view returns (bool) {
|
|
|
- address owner = tokenOwner[_tokenId];
|
|
|
- return owner != address(0);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @dev Approves another address to transfer the given token ID
|
|
|
* The zero address indicates there is no approved address.
|
|
@@ -200,6 +189,16 @@ contract ERC721BasicToken is SupportsInterfaceWithLookup, ERC721Basic {
|
|
|
require(checkAndCallSafeTransfer(_from, _to, _tokenId, _data));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @dev Returns whether the specified token exists
|
|
|
+ * @param _tokenId uint256 ID of the token to query the existence of
|
|
|
+ * @return whether the token exists
|
|
|
+ */
|
|
|
+ function _exists(uint256 _tokenId) internal view returns (bool) {
|
|
|
+ address owner = tokenOwner[_tokenId];
|
|
|
+ return owner != address(0);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @dev Returns whether the given spender can transfer a given token ID
|
|
|
* @param _spender address of the spender to query
|