Skip to content

Commit

Permalink
move burn to canonical contract
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Apr 1, 2024
1 parent 9328779 commit 63c6572
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 87 deletions.
11 changes: 11 additions & 0 deletions src-upgradeable/src/ERC721SeaDropUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,17 @@ contract ERC721SeaDropUpgradeable is
emit AllowedSeaDropUpdated(allowedSeaDrop);
}

/**
* @notice Burns `tokenId`. The caller must own `tokenId` or be an
* approved operator.
*
* @param tokenId The token id to burn.
*/
// solhint-disable-next-line comprehensive-interface
function burn(uint256 tokenId) external {
_burn(tokenId, true);
}

/**
* @dev Overrides the `_startTokenId` function from ERC721A
* to start at token id `1`.
Expand Down

This file was deleted.

11 changes: 11 additions & 0 deletions src/ERC721SeaDrop.sol
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,17 @@ contract ERC721SeaDrop is
emit AllowedSeaDropUpdated(allowedSeaDrop);
}

/**
* @notice Burns `tokenId`. The caller must own `tokenId` or be an
* approved operator.
*
* @param tokenId The token id to burn.
*/
// solhint-disable-next-line comprehensive-interface
function burn(uint256 tokenId) external {
_burn(tokenId, true);
}

/**
* @dev Overrides the `_startTokenId` function from ERC721A
* to start at token id `1`.
Expand Down
11 changes: 11 additions & 0 deletions src/clones/ERC721SeaDropCloneable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,17 @@ contract ERC721SeaDropCloneable is
emit AllowedSeaDropUpdated(allowedSeaDrop);
}

/**
* @notice Burns `tokenId`. The caller must own `tokenId` or be an
* approved operator.
*
* @param tokenId The token id to burn.
*/
// solhint-disable-next-line comprehensive-interface
function burn(uint256 tokenId) external {
_burn(tokenId, true);
}

/**
* @dev Overrides the `_startTokenId` function from ERC721A
* to start at token id `1`.
Expand Down
36 changes: 0 additions & 36 deletions src/extensions/ERC721SeaDropBurnable.sol

This file was deleted.

0 comments on commit 63c6572

Please sign in to comment.