Make getApproved constant view

This commit is contained in:
William Entriken 2018-02-28 23:54:45 -05:00 committed by GitHub
parent 2bddd126de
commit e855ea66c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,7 @@ interface ERC721 /* is ERC165 */ {
/// @dev Throws if `_tokenId` is not a valid NFT
/// @param _tokenId The NFT to find the approved address for
/// @return The approved address for this NFT, or the zero address if there is none
function getApproved(uint256 _tokenId) external returns (address);
function getApproved(uint256 _tokenId) external view returns (address);
/// @notice Query if an address is an authorized operator for another address
/// @param _owner The address that owns the NFTs