Update operator language

- Fixed typo (operator to operators)
- Explicitly call out the implementation MUST support multiple operators per owner as implied by the comments
- Removed unnecessary throw from the dev instructions on setApprovalForAll
This commit is contained in:
John Forrest 2018-03-15 17:09:22 -05:00
parent 64f6248f43
commit 48bec76f58

View File

@ -60,7 +60,8 @@ interface ERC721 /* is ERC165 */ {
event Approval(address indexed _owner, address indexed _approved, uint256 _tokenId);
/// @dev This emits when an operator is enabled or disabled for an owner.
/// The operator can manage all NFTs of the owner.
/// The operator can manage all NFTs of the owner. The contract MUST allow
/// multiple operators per owner.
event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved);
/// @notice Count all NFTs assigned to an owner
@ -123,7 +124,7 @@ interface ERC721 /* is ERC165 */ {
/// all of `msg.sender`'s assets.
/// @dev Emits the ApprovalForAll event
/// @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 operator is approved, false to revoke approval
function setApprovalForAll(address _operator, bool _approved) external;
/// @notice Get the approved address for a single NFT