From 5ab254cf95f13e379e288da68e884d4bccb67a7a Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Fri, 7 Jul 2023 16:13:17 +0200 Subject: [PATCH] lint --- contracts/token/ERC721/extensions/ERC721Consecutive.sol | 6 +----- contracts/token/ERC721/extensions/ERC721Enumerable.sol | 6 +----- contracts/token/ERC721/extensions/ERC721Pausable.sol | 6 +----- contracts/token/ERC721/extensions/ERC721Royalty.sol | 6 +----- contracts/token/ERC721/extensions/ERC721URIStorage.sol | 6 +----- contracts/token/ERC721/extensions/ERC721Votes.sol | 6 +----- 6 files changed, 6 insertions(+), 30 deletions(-) diff --git a/contracts/token/ERC721/extensions/ERC721Consecutive.sol b/contracts/token/ERC721/extensions/ERC721Consecutive.sol index 729475390..56fefb306 100644 --- a/contracts/token/ERC721/extensions/ERC721Consecutive.sol +++ b/contracts/token/ERC721/extensions/ERC721Consecutive.sol @@ -138,11 +138,7 @@ abstract contract ERC721Consecutive is IERC2309, ERC721 { * Warning: Using {ERC721Consecutive} prevents minting during construction in favor of {_mintConsecutive}. * After construction, {_mintConsecutive} is no longer available and minting through {_update} becomes available. */ - function _update( - address from, - address to, - uint256 tokenId - ) internal virtual override { + function _update(address from, address to, uint256 tokenId) internal virtual override { super._update(from, to, tokenId); // only mint after construction diff --git a/contracts/token/ERC721/extensions/ERC721Enumerable.sol b/contracts/token/ERC721/extensions/ERC721Enumerable.sol index 86fd5abff..b82469b94 100644 --- a/contracts/token/ERC721/extensions/ERC721Enumerable.sol +++ b/contracts/token/ERC721/extensions/ERC721Enumerable.sol @@ -76,11 +76,7 @@ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { /** * @dev See {ERC721-_update}. */ - function _update( - address from, - address to, - uint256 tokenId - ) internal virtual override { + function _update(address from, address to, uint256 tokenId) internal virtual override { super._update(from, to, tokenId); if (from == address(0)) { diff --git a/contracts/token/ERC721/extensions/ERC721Pausable.sol b/contracts/token/ERC721/extensions/ERC721Pausable.sol index 229759c94..1a596fd00 100644 --- a/contracts/token/ERC721/extensions/ERC721Pausable.sol +++ b/contracts/token/ERC721/extensions/ERC721Pausable.sol @@ -27,11 +27,7 @@ abstract contract ERC721Pausable is ERC721, Pausable { * * - the contract must not be paused. */ - function _update( - address from, - address to, - uint256 tokenId - ) internal virtual override { + function _update(address from, address to, uint256 tokenId) internal virtual override { _requireNotPaused(); super._update(from, to, tokenId); } diff --git a/contracts/token/ERC721/extensions/ERC721Royalty.sol b/contracts/token/ERC721/extensions/ERC721Royalty.sol index becea403b..dd2aa4283 100644 --- a/contracts/token/ERC721/extensions/ERC721Royalty.sol +++ b/contracts/token/ERC721/extensions/ERC721Royalty.sol @@ -29,11 +29,7 @@ abstract contract ERC721Royalty is ERC2981, ERC721 { /** * @dev See {ERC721-_update}. This override additionally clears the royalty information for the token. */ - function _update( - address from, - address to, - uint256 tokenId - ) internal virtual override { + function _update(address from, address to, uint256 tokenId) internal virtual override { super._update(from, to, tokenId); if (to == address(0)) { diff --git a/contracts/token/ERC721/extensions/ERC721URIStorage.sol b/contracts/token/ERC721/extensions/ERC721URIStorage.sol index 9480ee122..6e08de3ac 100644 --- a/contracts/token/ERC721/extensions/ERC721URIStorage.sol +++ b/contracts/token/ERC721/extensions/ERC721URIStorage.sol @@ -68,11 +68,7 @@ abstract contract ERC721URIStorage is IERC4906, ERC721 { * token-specific URI was set for the token, and if so, it deletes the token URI from * the storage mapping. */ - function _update( - address from, - address to, - uint256 tokenId - ) internal virtual override { + function _update(address from, address to, uint256 tokenId) internal virtual override { super._update(from, to, tokenId); if (to == address(0) && bytes(_tokenURIs[tokenId]).length != 0) { diff --git a/contracts/token/ERC721/extensions/ERC721Votes.sol b/contracts/token/ERC721/extensions/ERC721Votes.sol index 9e93ff711..56e3525a5 100644 --- a/contracts/token/ERC721/extensions/ERC721Votes.sol +++ b/contracts/token/ERC721/extensions/ERC721Votes.sol @@ -20,11 +20,7 @@ abstract contract ERC721Votes is ERC721, Votes { * * Emits a {IVotes-DelegateVotesChanged} event. */ - function _update( - address from, - address to, - uint256 tokenId - ) internal virtual override { + function _update(address from, address to, uint256 tokenId) internal virtual override { super._update(from, to, tokenId); _transferVotingUnits(from, to, 1); }