Skip to content

Commit 247fe25

Browse files
committed
remove virtual
1 parent 725f120 commit 247fe25

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contracts/token/ERC721/ERC721.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,10 @@ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Er
425425
/**
426426
* @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned).
427427
* Returns the owner.
428+
*
429+
* Overrides to ownership logic should be done to {_ownerOf}.
428430
*/
429-
function _requireOwned(uint256 tokenId) internal view virtual returns (address) {
431+
function _requireOwned(uint256 tokenId) internal view returns (address) {
430432
address owner = _ownerOf(tokenId);
431433
if (owner == address(0)) {
432434
revert ERC721NonexistentToken(tokenId);

0 commit comments

Comments
 (0)