Skip to content

Commit 2da14ea

Browse files
committed
add mint event
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
1 parent fe7cb9b commit 2da14ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

contracts/nft/erc721m/clones/ERC721MagicDropCloneable.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ contract ERC721MagicDropCloneable is ERC721MagicDropMetadataCloneable {
104104
/// @notice Emitted when the payout recipient is set.
105105
event PayoutRecipientSet(address newPayoutRecipient);
106106

107+
/// @notice Emitted when a token is minted.
108+
event TokenMinted(address indexed to, uint256 tokenId, uint256 qty);
109+
107110
/*==============================================================
108111
= ERRORS =
109112
==============================================================*/
@@ -179,6 +182,8 @@ contract ERC721MagicDropCloneable is ERC721MagicDropMetadataCloneable {
179182
if (stage.price != 0) {
180183
_splitProceeds();
181184
}
185+
186+
emit TokenMinted(to, _totalMinted(), qty);
182187
}
183188

184189
/// @notice Mints tokens during the allowlist stage.

0 commit comments

Comments
 (0)