@@ -13,7 +13,7 @@ import "../extension/BatchMintMetadata.sol";
13
13
import "../extension/LazyMint.sol " ;
14
14
import "../extension/interface/IClaimableERC1155.sol " ;
15
15
16
- import "../lib/TWStrings .sol " ;
16
+ import "../lib/Strings .sol " ;
17
17
import "../external-deps/openzeppelin/security/ReentrancyGuard.sol " ;
18
18
19
19
/**
@@ -59,7 +59,7 @@ contract ERC1155LazyMint is
59
59
IClaimableERC1155 ,
60
60
ReentrancyGuard
61
61
{
62
- using TWStrings for uint256 ;
62
+ using Strings for uint256 ;
63
63
64
64
/*//////////////////////////////////////////////////////////////
65
65
Mappings
@@ -130,11 +130,7 @@ contract ERC1155LazyMint is
130
130
* @param _tokenId The tokenId of the lazy minted NFT to mint.
131
131
* @param _quantity The number of tokens to mint.
132
132
*/
133
- function claim (
134
- address _receiver ,
135
- uint256 _tokenId ,
136
- uint256 _quantity
137
- ) public payable virtual nonReentrant {
133
+ function claim (address _receiver , uint256 _tokenId , uint256 _quantity ) public payable virtual nonReentrant {
138
134
require (_tokenId < nextTokenIdToMint (), "invalid id " );
139
135
verifyClaim (msg .sender , _tokenId, _quantity); // Add your claim verification logic by overriding this function.
140
136
@@ -152,11 +148,7 @@ contract ERC1155LazyMint is
152
148
* @param _tokenId The tokenId of the lazy minted NFT to mint.
153
149
* @param _quantity The number of NFTs being claimed.
154
150
*/
155
- function verifyClaim (
156
- address _claimer ,
157
- uint256 _tokenId ,
158
- uint256 _quantity
159
- ) public view virtual {}
151
+ function verifyClaim (address _claimer , uint256 _tokenId , uint256 _quantity ) public view virtual {}
160
152
161
153
/**
162
154
* @notice Lets an owner or approved operator burn NFTs of the given tokenId.
@@ -165,11 +157,7 @@ contract ERC1155LazyMint is
165
157
* @param _tokenId The tokenId of the NFT to burn.
166
158
* @param _amount The amount of the NFT to burn.
167
159
*/
168
- function burn (
169
- address _owner ,
170
- uint256 _tokenId ,
171
- uint256 _amount
172
- ) external virtual {
160
+ function burn (address _owner , uint256 _tokenId , uint256 _amount ) external virtual {
173
161
address caller = msg .sender ;
174
162
175
163
require (caller == _owner || isApprovedForAll[_owner][caller], "Unapproved caller " );
@@ -185,11 +173,7 @@ contract ERC1155LazyMint is
185
173
* @param _tokenIds The tokenIds of the NFTs to burn.
186
174
* @param _amounts The amounts of the NFTs to burn.
187
175
*/
188
- function burnBatch (
189
- address _owner ,
190
- uint256 [] memory _tokenIds ,
191
- uint256 [] memory _amounts
192
- ) external virtual {
176
+ function burnBatch (address _owner , uint256 [] memory _tokenIds , uint256 [] memory _amounts ) external virtual {
193
177
address caller = msg .sender ;
194
178
195
179
require (caller == _owner || isApprovedForAll[_owner][caller], "Unapproved caller " );
@@ -243,11 +227,7 @@ contract ERC1155LazyMint is
243
227
* @param _tokenId The tokenId of the lazy minted NFT to mint.
244
228
* @param _quantity The number of tokens to mint.
245
229
*/
246
- function _transferTokensOnClaim (
247
- address _receiver ,
248
- uint256 _tokenId ,
249
- uint256 _quantity
250
- ) internal virtual {
230
+ function _transferTokensOnClaim (address _receiver , uint256 _tokenId , uint256 _quantity ) internal virtual {
251
231
_mint (_receiver, _tokenId, _quantity, "" );
252
232
}
253
233
0 commit comments