|
|
@ -13,8 +13,9 @@ contract ERC721BasicToken is ERC721Basic { |
|
|
|
using SafeMath for uint256; |
|
|
|
using SafeMath for uint256; |
|
|
|
using AddressUtils for address; |
|
|
|
using AddressUtils for address; |
|
|
|
|
|
|
|
|
|
|
|
// Equals to bytes4(keccak256("onERC721Received(address,uint256,bytes)")) |
|
|
|
// Equals to `bytes4(keccak256("onERC721Received(address,uint256,bytes)"))` |
|
|
|
bytes4 ERC721_RECEIVED = 0xf0b9e5ba; |
|
|
|
// which can be also obtained as `ERC721Receiver(0).onERC721Received.selector` |
|
|
|
|
|
|
|
bytes4 constant ERC721_RECEIVED = 0xf0b9e5ba; |
|
|
|
|
|
|
|
|
|
|
|
// Mapping from token ID to owner |
|
|
|
// Mapping from token ID to owner |
|
|
|
mapping (uint256 => address) internal tokenOwner; |
|
|
|
mapping (uint256 => address) internal tokenOwner; |
|
|
|