// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.16; import "./interface/IThirdPartyMint721.sol"; import "./ThirdPartyMint.sol"; abstract contract ThirdPartyMint721 is ThirdPartyMint, IThirdPartyMint721 { constructor(IAccessControl _thirdPartySetup) ThirdPartyMint(_thirdPartySetup) {} function _afterMintFromThirdParty(address _receiver, uint256 _quantity) internal virtual; /// @inheritdoc IThirdPartyMint721 function mintFromThirdParty(address _receiver, uint256 _quantity) public { if (!thirdPartySetup.hasRole(keccak256("MINTER_ROLE"), msg.sender)) { revert CannotMintFromThirdPartyIfMsgSenderIsNotMinterError(); } _afterMintFromThirdParty(_receiver, _quantity); } }