Skip to content

Commit

Permalink
add mint event
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
  • Loading branch information
wolfy-nft committed Jan 14, 2025
1 parent 285b228 commit 65af906
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contracts/nft/erc1155m/clones/ERC1155MagicDropCloneable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ contract ERC1155MagicDropCloneable is ERC1155MagicDropMetadataCloneable {
/// @notice Emitted when the payout recipient is set.
event PayoutRecipientSet(address newPayoutRecipient);

/// @notice Emitted when a token is minted.
event TokenMinted(address indexed to, uint256 tokenId, uint256 qty);

/*==============================================================
= ERRORS =
==============================================================*/
Expand Down Expand Up @@ -174,6 +177,7 @@ contract ERC1155MagicDropCloneable is ERC1155MagicDropMetadataCloneable {
}

_mint(to, tokenId, qty, data);
emit TokenMinted(to, tokenId, qty);
}

/// @notice Mints tokens during the allowlist stage.
Expand Down Expand Up @@ -212,6 +216,7 @@ contract ERC1155MagicDropCloneable is ERC1155MagicDropMetadataCloneable {
}

_mint(to, tokenId, qty, data);
emit TokenMinted(to, tokenId, qty);
}

/// @notice Burns a specific quantity of tokens on behalf of a given address.
Expand Down

0 comments on commit 65af906

Please sign in to comment.