Skip to content

Commit 06449fe

Browse files
authored
Improve wording in _checkAuthorized's natspec (#5066)
1 parent c1d6ad5 commit 06449fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

contracts/token/ERC721/ERC721.sol

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,9 @@ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Er
195195

196196
/**
197197
* @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.
198-
* Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets
199-
* the `spender` for the specific `tokenId`.
198+
* Reverts if:
199+
* - `spender` does not have approval from `owner` for `tokenId`.
200+
* - `spender` does not have approval to manage all of `owner`'s assets.
200201
*
201202
* WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
202203
* assumption.

0 commit comments

Comments
 (0)