From 65af906a5d2c5ab9071e5731fc598d5e16557598 Mon Sep 17 00:00:00 2001 From: Adam Wolf Date: Tue, 14 Jan 2025 14:20:02 -0500 Subject: [PATCH] add mint event Signed-off-by: Adam Wolf --- contracts/nft/erc1155m/clones/ERC1155MagicDropCloneable.sol | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contracts/nft/erc1155m/clones/ERC1155MagicDropCloneable.sol b/contracts/nft/erc1155m/clones/ERC1155MagicDropCloneable.sol index 1dbf1dc..0295636 100644 --- a/contracts/nft/erc1155m/clones/ERC1155MagicDropCloneable.sol +++ b/contracts/nft/erc1155m/clones/ERC1155MagicDropCloneable.sol @@ -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 = ==============================================================*/ @@ -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. @@ -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.