Skip to content

Commit 5ab254c

Browse files
committed
lint
1 parent 0bb98cb commit 5ab254c

File tree

6 files changed

+6
-30
lines changed

6 files changed

+6
-30
lines changed

contracts/token/ERC721/extensions/ERC721Consecutive.sol

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,7 @@ abstract contract ERC721Consecutive is IERC2309, ERC721 {
138138
* Warning: Using {ERC721Consecutive} prevents minting during construction in favor of {_mintConsecutive}.
139139
* After construction, {_mintConsecutive} is no longer available and minting through {_update} becomes available.
140140
*/
141-
function _update(
142-
address from,
143-
address to,
144-
uint256 tokenId
145-
) internal virtual override {
141+
function _update(address from, address to, uint256 tokenId) internal virtual override {
146142
super._update(from, to, tokenId);
147143

148144
// only mint after construction

contracts/token/ERC721/extensions/ERC721Enumerable.sol

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,7 @@ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
7676
/**
7777
* @dev See {ERC721-_update}.
7878
*/
79-
function _update(
80-
address from,
81-
address to,
82-
uint256 tokenId
83-
) internal virtual override {
79+
function _update(address from, address to, uint256 tokenId) internal virtual override {
8480
super._update(from, to, tokenId);
8581

8682
if (from == address(0)) {

contracts/token/ERC721/extensions/ERC721Pausable.sol

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ abstract contract ERC721Pausable is ERC721, Pausable {
2727
*
2828
* - the contract must not be paused.
2929
*/
30-
function _update(
31-
address from,
32-
address to,
33-
uint256 tokenId
34-
) internal virtual override {
30+
function _update(address from, address to, uint256 tokenId) internal virtual override {
3531
_requireNotPaused();
3632
super._update(from, to, tokenId);
3733
}

contracts/token/ERC721/extensions/ERC721Royalty.sol

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ abstract contract ERC721Royalty is ERC2981, ERC721 {
2929
/**
3030
* @dev See {ERC721-_update}. This override additionally clears the royalty information for the token.
3131
*/
32-
function _update(
33-
address from,
34-
address to,
35-
uint256 tokenId
36-
) internal virtual override {
32+
function _update(address from, address to, uint256 tokenId) internal virtual override {
3733
super._update(from, to, tokenId);
3834

3935
if (to == address(0)) {

contracts/token/ERC721/extensions/ERC721URIStorage.sol

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,7 @@ abstract contract ERC721URIStorage is IERC4906, ERC721 {
6868
* token-specific URI was set for the token, and if so, it deletes the token URI from
6969
* the storage mapping.
7070
*/
71-
function _update(
72-
address from,
73-
address to,
74-
uint256 tokenId
75-
) internal virtual override {
71+
function _update(address from, address to, uint256 tokenId) internal virtual override {
7672
super._update(from, to, tokenId);
7773

7874
if (to == address(0) && bytes(_tokenURIs[tokenId]).length != 0) {

contracts/token/ERC721/extensions/ERC721Votes.sol

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ abstract contract ERC721Votes is ERC721, Votes {
2020
*
2121
* Emits a {IVotes-DelegateVotesChanged} event.
2222
*/
23-
function _update(
24-
address from,
25-
address to,
26-
uint256 tokenId
27-
) internal virtual override {
23+
function _update(address from, address to, uint256 tokenId) internal virtual override {
2824
super._update(from, to, tokenId);
2925
_transferVotingUnits(from, to, 1);
3026
}

0 commit comments

Comments
 (0)