fix lint
This commit is contained in:
@ -35,7 +35,10 @@ contract ERC721ConsecutiveEnumerableMock is ERC721Consecutive, ERC721Enumerable
|
|||||||
return super._update(to, tokenId, constraints);
|
return super._update(to, tokenId, constraints);
|
||||||
}
|
}
|
||||||
|
|
||||||
function __unsafe_increaseBalance(address account, uint256 amount) internal virtual override(ERC721, ERC721Enumerable) {
|
function __unsafe_increaseBalance(
|
||||||
|
address account,
|
||||||
|
uint256 amount
|
||||||
|
) internal virtual override(ERC721, ERC721Enumerable) {
|
||||||
super.__unsafe_increaseBalance(account, amount);
|
super.__unsafe_increaseBalance(account, amount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -75,7 +75,11 @@ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
|
|||||||
/**
|
/**
|
||||||
* @dev See {ERC721-_update}.
|
* @dev See {ERC721-_update}.
|
||||||
*/
|
*/
|
||||||
function _update(address to, uint256 tokenId, function(address, address, uint256) view constraints) internal virtual override returns (address) {
|
function _update(
|
||||||
|
address to,
|
||||||
|
uint256 tokenId,
|
||||||
|
function(address, address, uint256) view constraints
|
||||||
|
) internal virtual override returns (address) {
|
||||||
address from = super._update(to, tokenId, constraints);
|
address from = super._update(to, tokenId, constraints);
|
||||||
|
|
||||||
if (from == address(0)) {
|
if (from == address(0)) {
|
||||||
|
|||||||
@ -31,7 +31,11 @@ abstract contract ERC721Royalty is ERC2981, ERC721 {
|
|||||||
/**
|
/**
|
||||||
* @dev See {ERC721-_update}. This override additionally clears the royalty information for the token.
|
* @dev See {ERC721-_update}. This override additionally clears the royalty information for the token.
|
||||||
*/
|
*/
|
||||||
function _update(address to, uint256 tokenId, function(address, address, uint256) view constraints) internal virtual override returns (address) {
|
function _update(
|
||||||
|
address to,
|
||||||
|
uint256 tokenId,
|
||||||
|
function(address, address, uint256) view constraints
|
||||||
|
) internal virtual override returns (address) {
|
||||||
address from = super._update(to, tokenId, constraints);
|
address from = super._update(to, tokenId, constraints);
|
||||||
|
|
||||||
if (to == address(0)) {
|
if (to == address(0)) {
|
||||||
|
|||||||
@ -66,7 +66,11 @@ abstract contract ERC721URIStorage is IERC4906, ERC721 {
|
|||||||
* token-specific URI was set for the token, and if so, it deletes the token URI from
|
* token-specific URI was set for the token, and if so, it deletes the token URI from
|
||||||
* the storage mapping.
|
* the storage mapping.
|
||||||
*/
|
*/
|
||||||
function _update(address to, uint256 tokenId, function(address, address, uint256) view constraints) internal virtual override returns (address) {
|
function _update(
|
||||||
|
address to,
|
||||||
|
uint256 tokenId,
|
||||||
|
function(address, address, uint256) view constraints
|
||||||
|
) internal virtual override returns (address) {
|
||||||
address from = super._update(to, tokenId, constraints);
|
address from = super._update(to, tokenId, constraints);
|
||||||
|
|
||||||
if (to == address(0) && bytes(_tokenURIs[tokenId]).length != 0) {
|
if (to == address(0) && bytes(_tokenURIs[tokenId]).length != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user