This commit is contained in:
Hadrien Croubois
2023-06-21 22:09:50 +02:00
parent 7ec34355ae
commit e2fdbacd63
4 changed files with 19 additions and 4 deletions

View File

@ -35,7 +35,10 @@ contract ERC721ConsecutiveEnumerableMock is ERC721Consecutive, ERC721Enumerable
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);
}
}

View File

@ -75,7 +75,11 @@ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
/**
* @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);
if (from == address(0)) {

View File

@ -31,7 +31,11 @@ abstract contract ERC721Royalty is ERC2981, ERC721 {
/**
* @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);
if (to == address(0)) {

View File

@ -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
* 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);
if (to == address(0) && bytes(_tokenURIs[tokenId]).length != 0) {