misc: Cleaned up comment.

This commit is contained in:
Peter Michael
2022-07-06 11:18:20 -04:00
parent 9669446e46
commit c2c0d7368e

View File

@@ -143,10 +143,10 @@ library GeneralHelpers {
* @dev This fetches the owner address for a given token ID. Note that this does not check
* and revert upon receiving a zero address.
*
* However, this function is always followed by a call to `_validateRecoveredAddress()` with
* the returned address from this function as the signer, and since `_validateRecoveredAddress()`
* reverts upon recovering the zero address, the execution will always revert if the owner returned
* is the zero address.
* However, this function is only used if this caveat is checked or if it is followed by a call
* to `_validateRecoveredAddress()` with the returned address from this function as the signer,
* and since `_validateRecoveredAddress()` reverts upon recovering the zero address, the execution
* will always revert if the owner returned is the zero address.
*/
function unsafeOwnerOf(uint256 tokenId) internal view returns (address) {
// Note that this does *not* include a zero address check, but this is acceptable because