From 494b49fba16f852ebe7d1172db794251dc599dc9 Mon Sep 17 00:00:00 2001 From: Ishan Ghimire Date: Tue, 13 Feb 2024 23:52:22 -0500 Subject: [PATCH] v1.4.2 --- contracts/mint/MintManager.sol | 4 +++- contracts/mint/mechanics/DiscreteDutchAuctionMechanic.sol | 2 ++ contracts/mint/mechanics/interfaces/IMechanic.sol | 6 +++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/contracts/mint/MintManager.sol b/contracts/mint/MintManager.sol index d0ce3b0..2bef0c1 100644 --- a/contracts/mint/MintManager.sol +++ b/contracts/mint/MintManager.sol @@ -759,6 +759,7 @@ contract MintManager is mechanicVectorId, recipient, numToMint, + _msgSender(), _mechanicVectorMetadata, data ); @@ -818,6 +819,7 @@ contract MintManager is mechanicVectorId, recipient, tokenIds, + _msgSender(), _mechanicVectorMetadata, data ); @@ -1675,4 +1677,4 @@ contract MintManager is revert(0x00, 0x04) } } -} +} \ No newline at end of file diff --git a/contracts/mint/mechanics/DiscreteDutchAuctionMechanic.sol b/contracts/mint/mechanics/DiscreteDutchAuctionMechanic.sol index e47e12a..75a32a4 100644 --- a/contracts/mint/mechanics/DiscreteDutchAuctionMechanic.sol +++ b/contracts/mint/mechanics/DiscreteDutchAuctionMechanic.sol @@ -353,6 +353,7 @@ contract DiscreteDutchAuctionMechanic is MechanicMintManagerClientUpgradeable, U bytes32 mechanicVectorId, address recipient, uint32 numToMint, + address minter, MechanicVectorMetadata calldata mechanicVectorMetadata, bytes calldata data ) external payable onlyMintManager { @@ -366,6 +367,7 @@ contract DiscreteDutchAuctionMechanic is MechanicMintManagerClientUpgradeable, U bytes32 mechanicVectorId, address recipient, uint256[] calldata tokenIds, + address minter, MechanicVectorMetadata calldata mechanicVectorMetadata, bytes calldata data ) external payable onlyMintManager { diff --git a/contracts/mint/mechanics/interfaces/IMechanic.sol b/contracts/mint/mechanics/interfaces/IMechanic.sol index a236d9f..c9d1307 100644 --- a/contracts/mint/mechanics/interfaces/IMechanic.sol +++ b/contracts/mint/mechanics/interfaces/IMechanic.sol @@ -20,6 +20,7 @@ interface IMechanic is IMechanicData { * @param mechanicVectorId Global ID identifying mint vector, using this mechanic * @param recipient Mint recipient * @param numToMint Number of tokens to mint + * @param minter Account that called mint on the MintManager * @param mechanicVectorMetadata Mechanic vector metadata * @param data Custom data that can be deserialized and processed according to implementation */ @@ -27,6 +28,7 @@ interface IMechanic is IMechanicData { bytes32 mechanicVectorId, address recipient, uint32 numToMint, + address minter, MechanicVectorMetadata calldata mechanicVectorMetadata, bytes calldata data ) external payable; @@ -36,6 +38,7 @@ interface IMechanic is IMechanicData { * @param mechanicVectorId Global ID identifying mint vector, using this mechanic * @param recipient Mint recipient * @param tokenIds IDs of tokens to mint + * @param minter Account that called mint on the MintManager * @param mechanicVectorMetadata Mechanic vector metadata * @param data Custom data that can be deserialized and processed according to implementation */ @@ -43,7 +46,8 @@ interface IMechanic is IMechanicData { bytes32 mechanicVectorId, address recipient, uint256[] calldata tokenIds, + address minter, MechanicVectorMetadata calldata mechanicVectorMetadata, bytes calldata data ) external payable; -} +} \ No newline at end of file