From c6bdb842babeffa3aa4ea69d913fe5ce7b00193b Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 5 May 2022 04:28:30 +0000 Subject: [PATCH] Transpile chiru-labs/ERC721A@17fb77ffce10bb9a2bb94cac1fea17e2bf9e8a27 --- contracts/ERC721AUpgradeable.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/ERC721AUpgradeable.sol b/contracts/ERC721AUpgradeable.sol index ebfb955..fed41d3 100644 --- a/contracts/ERC721AUpgradeable.sol +++ b/contracts/ERC721AUpgradeable.sol @@ -145,7 +145,7 @@ contract ERC721AUpgradeable is Initializable, ContextUpgradeable, ERC165Upgradea uint256 curr = tokenId; unchecked { - if (_startTokenId() <= curr && curr < _currentIndex) { + if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { @@ -215,7 +215,7 @@ contract ERC721AUpgradeable is Initializable, ContextUpgradeable, ERC165Upgradea address owner = ERC721AUpgradeable.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); - if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { + if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } @@ -280,7 +280,7 @@ contract ERC721AUpgradeable is Initializable, ContextUpgradeable, ERC165Upgradea bytes memory _data ) public virtual override { _transfer(from, to, tokenId); - if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) { + if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } }