Improve wording in _checkAuthorized's natspec (#5066)

This commit is contained in:
Alexander González
2024-06-03 21:07:21 +02:00
committed by GitHub
parent c1d6ad5a30
commit 06449fe7bc

View File

@ -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. * @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 * Reverts if:
* the `spender` for the specific `tokenId`. * - `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 * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
* assumption. * assumption.