From 7ec34355ae4e93855da9793e8297acb3e44b11e3 Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Wed, 21 Jun 2023 17:59:22 +0200 Subject: [PATCH] Apply suggestions from code review --- contracts/token/ERC721/ERC721.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/token/ERC721/ERC721.sol b/contracts/token/ERC721/ERC721.sol index 61d9db2dc..d0a2d0e5a 100644 --- a/contracts/token/ERC721/ERC721.sol +++ b/contracts/token/ERC721/ERC721.sol @@ -387,7 +387,7 @@ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Er } /** - * @dev Contraint: revert if token is already minted + * @dev Constraint: revert if token is already minted */ function _constraintNotMinted(address from, address, uint256) internal pure { if (from != address(0)) { @@ -396,7 +396,7 @@ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Er } /** - * @dev Contraint: revert if token is not yet minted + * @dev Constraint: revert if token is not yet minted */ function _constraintMinted(address from, address, uint256 tokenId) internal pure { if (from == address(0)) { @@ -405,7 +405,7 @@ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Er } /** - * @dev Contraint: check that the caller is the current owner, or approved by the current owner + * @dev Constraint: check that the caller is the current owner, or approved by the current owner */ function _constraintApprovedOrOwner(address owner, address, uint256 tokenId) internal view { address spender = _msgSender();