Skip to content

Commit

Permalink
remove _merging flag
Browse files Browse the repository at this point in the history
  • Loading branch information
hvthhien committed Jul 5, 2024
1 parent 628aaf5 commit d11196f
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions contracts/FeralfileArtworkV4_3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ contract FeralfileExhibitionV4_3 is FeralfileExhibitionV4_1 {
error InvalidOwner();
error TokenIsNonMergeable();
error InvalidLength();
error InvalidMergingStatus();

struct MergeArtworkInfo {
uint256 singleSeriesId;
Expand All @@ -16,9 +15,6 @@ contract FeralfileExhibitionV4_3 is FeralfileExhibitionV4_1 {
}
MergeArtworkInfo private mergeArtworkInfo;

// merging
bool internal _merging;

constructor(
string memory name_,
string memory symbol_,
Expand Down Expand Up @@ -51,10 +47,6 @@ contract FeralfileExhibitionV4_3 is FeralfileExhibitionV4_1 {
/// @notice burns multiples mergeable artworks and mint a new artworks
/// @param tokenIds - list of tokenIds to be burned
function mergeArtworks(uint256[] calldata tokenIds) external {
if (!_merging) {
revert InvalidMergingStatus();
}

if (tokenIds.length < 2) {
revert InvalidLength();
}
Expand Down Expand Up @@ -90,24 +82,6 @@ contract FeralfileExhibitionV4_3 is FeralfileExhibitionV4_1 {
emit MergedArtwork(_msgSender(), tokenIds, newTokenId);
}

/// @notice Start token merging
function startMerging() external onlyOwner {
if (_merging) {
revert InvalidMergingStatus();
}

_merging = true;
}

/// @notice Pause token merging
function pauseMerging() public onlyOwner {
if (!_merging) {
revert InvalidMergingStatus();
}

_merging = false;
}

/// @notice Event emitted when a merged artwork has been minted
event MergedArtwork(
address indexed owner,
Expand Down

0 comments on commit d11196f

Please sign in to comment.