Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Jul 7, 2023
1 parent 0bb98cb commit 5ab254c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 30 deletions.
6 changes: 1 addition & 5 deletions contracts/token/ERC721/extensions/ERC721Consecutive.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions contracts/token/ERC721/extensions/ERC721Enumerable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
6 changes: 1 addition & 5 deletions contracts/token/ERC721/extensions/ERC721Pausable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
6 changes: 1 addition & 5 deletions contracts/token/ERC721/extensions/ERC721Royalty.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
6 changes: 1 addition & 5 deletions contracts/token/ERC721/extensions/ERC721URIStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 1 addition & 5 deletions contracts/token/ERC721/extensions/ERC721Votes.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 5ab254c

Please sign in to comment.