@@ -13,7 +13,7 @@ import "../extension/BatchMintMetadata.sol";
1313import "../extension/LazyMint.sol " ;
1414import "../extension/interface/IClaimableERC1155.sol " ;
1515
16- import "../lib/TWStrings .sol " ;
16+ import "../lib/Strings .sol " ;
1717import "../external-deps/openzeppelin/security/ReentrancyGuard.sol " ;
1818
1919/**
@@ -59,7 +59,7 @@ contract ERC1155LazyMint is
5959 IClaimableERC1155 ,
6060 ReentrancyGuard
6161{
62- using TWStrings for uint256 ;
62+ using Strings for uint256 ;
6363
6464 /*//////////////////////////////////////////////////////////////
6565 Mappings
@@ -130,11 +130,7 @@ contract ERC1155LazyMint is
130130 * @param _tokenId The tokenId of the lazy minted NFT to mint.
131131 * @param _quantity The number of tokens to mint.
132132 */
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 {
138134 require (_tokenId < nextTokenIdToMint (), "invalid id " );
139135 verifyClaim (msg .sender , _tokenId, _quantity); // Add your claim verification logic by overriding this function.
140136
@@ -152,11 +148,7 @@ contract ERC1155LazyMint is
152148 * @param _tokenId The tokenId of the lazy minted NFT to mint.
153149 * @param _quantity The number of NFTs being claimed.
154150 */
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 {}
160152
161153 /**
162154 * @notice Lets an owner or approved operator burn NFTs of the given tokenId.
@@ -165,11 +157,7 @@ contract ERC1155LazyMint is
165157 * @param _tokenId The tokenId of the NFT to burn.
166158 * @param _amount The amount of the NFT to burn.
167159 */
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 {
173161 address caller = msg .sender ;
174162
175163 require (caller == _owner || isApprovedForAll[_owner][caller], "Unapproved caller " );
@@ -185,11 +173,7 @@ contract ERC1155LazyMint is
185173 * @param _tokenIds The tokenIds of the NFTs to burn.
186174 * @param _amounts The amounts of the NFTs to burn.
187175 */
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 {
193177 address caller = msg .sender ;
194178
195179 require (caller == _owner || isApprovedForAll[_owner][caller], "Unapproved caller " );
@@ -243,11 +227,7 @@ contract ERC1155LazyMint is
243227 * @param _tokenId The tokenId of the lazy minted NFT to mint.
244228 * @param _quantity The number of tokens to mint.
245229 */
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 {
251231 _mint (_receiver, _tokenId, _quantity, "" );
252232 }
253233
0 commit comments