Browse Source

Improve wording in _checkAuthorized's natspec (#5066)

Alexander González 1 year ago
parent
commit
06449fe7bc
1 changed files with 3 additions and 2 deletions
  1. 3 2
      contracts/token/ERC721/ERC721.sol

+ 3 - 2
contracts/token/ERC721/ERC721.sol

@@ -195,8 +195,9 @@ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Er
 
     /**
      * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.
-     * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets
-     * the `spender` for the specific `tokenId`.
+     * Reverts if:
+     * - `spender` does not have approval from `owner` for `tokenId`.
+     * - `spender` does not have approval to manage all of `owner`'s assets.
      *
      * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
      * assumption.