Improve wording in _checkAuthorized's natspec (#5066)

pull/5072/head
Alexander González 8 months ago committed by GitHub
parent c1d6ad5a30
commit 06449fe7bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      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.

Loading…
Cancel
Save