Be explicit about setApprovalForAll's msg.sender requirement.

Also correct a typo.
This commit is contained in:
Fang 2018-03-10 21:26:49 +01:00 committed by GitHub
parent 0da6871228
commit 812f414d26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,7 +122,8 @@ interface ERC721 /* is ERC165 */ {
function approve(address _approved, uint256 _tokenId) external payable; function approve(address _approved, uint256 _tokenId) external payable;
/// @notice Enable or disable approval for a third party ("operator") to manage /// @notice Enable or disable approval for a third party ("operator") to manage
/// all your asset. /// all your assets.
/// @dev Throws unless `msg.sender` is the current NFT owner.
/// @dev Emits the ApprovalForAll event /// @dev Emits the ApprovalForAll event
/// @param _operator Address to add to the set of authorized operators. /// @param _operator Address to add to the set of authorized operators.
/// @param _approved True if the operators is approved, false to revoke approval /// @param _approved True if the operators is approved, false to revoke approval