@@ -119,7 +119,7 @@ contract ERC721LazyMint is
119119 * @param _receiver The recipient of the NFT to mint.
120120 * @param _quantity The number of NFTs to mint.
121121 */
122- function claim (address _receiver , uint256 _quantity ) public payable nonReentrant {
122+ function claim (address _receiver , uint256 _quantity ) public payable virtual nonReentrant {
123123 require (_currentIndex + _quantity <= nextTokenIdToLazyMint, "Not enough lazy minted tokens. " );
124124 verifyClaim (msg .sender , _quantity); // Add your claim verification logic by overriding this function.
125125
@@ -165,14 +165,20 @@ contract ERC721LazyMint is
165165 /// @dev See {ERC721-setApprovalForAll}.
166166 function setApprovalForAll (address operator , bool approved )
167167 public
168+ virtual
168169 override (ERC721A )
169170 onlyAllowedOperatorApproval (operator)
170171 {
171172 super .setApprovalForAll (operator, approved);
172173 }
173174
174175 /// @dev See {ERC721-approve}.
175- function approve (address operator , uint256 tokenId ) public override (ERC721A ) onlyAllowedOperatorApproval (operator) {
176+ function approve (address operator , uint256 tokenId )
177+ public
178+ virtual
179+ override (ERC721A )
180+ onlyAllowedOperatorApproval (operator)
181+ {
176182 super .approve (operator, tokenId);
177183 }
178184
@@ -181,7 +187,7 @@ contract ERC721LazyMint is
181187 address from ,
182188 address to ,
183189 uint256 tokenId
184- ) public override (ERC721A ) onlyAllowedOperator (from) {
190+ ) public virtual override (ERC721A ) onlyAllowedOperator (from) {
185191 super .transferFrom (from, to, tokenId);
186192 }
187193
@@ -190,7 +196,7 @@ contract ERC721LazyMint is
190196 address from ,
191197 address to ,
192198 uint256 tokenId
193- ) public override (ERC721A ) onlyAllowedOperator (from) {
199+ ) public virtual override (ERC721A ) onlyAllowedOperator (from) {
194200 super .safeTransferFrom (from, to, tokenId);
195201 }
196202
@@ -200,7 +206,7 @@ contract ERC721LazyMint is
200206 address to ,
201207 uint256 tokenId ,
202208 bytes memory data
203- ) public override (ERC721A ) onlyAllowedOperator (from) {
209+ ) public virtual override (ERC721A ) onlyAllowedOperator (from) {
204210 super .safeTransferFrom (from, to, tokenId, data);
205211 }
206212
0 commit comments