1
- // // SPDX-License-Identifier: Apache-2.0
2
- // pragma solidity ^0.8.11;
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ pragma solidity ^ 0.8.11 ;
3
3
4
4
// // ========== External imports ==========
5
5
281
281
// PackContent[] calldata _contents,
282
282
// uint256 _packId
283
283
// )
284
- // internal
285
- // returns (uint256 packTotalSupply)
284
+ // internal
285
+ // returns (uint256 packTotalSupply)
286
286
// {
287
287
// uint256 nativeTokenAmount;
288
288
300
300
// nativeTokenAmount += _contents[i].token.totalAmount;
301
301
// } else {
302
302
// transferPackContent(
303
- // _contents[i].token.assetContract,
303
+ // _contents[i].token.assetContract,
304
304
// _contents[i].token.tokenType,
305
305
// _msgSender(),
306
306
// address(this),
312
312
313
313
// if(nativeTokenAmount > 0) {
314
314
// transferPackContent(
315
- // CurrencyTransferLib.NATIVE_TOKEN,
315
+ // CurrencyTransferLib.NATIVE_TOKEN,
316
316
// TokenType.ERC20,
317
317
// _msgSender(),
318
318
// address(this),
327
327
// uint256 _packId,
328
328
// uint256 _numOfPacksToOpen,
329
329
// uint256 _rewardUnitsPerOpen
330
- // )
330
+ // )
331
331
// internal
332
332
// returns (
333
333
// PackContent[] memory rewardUnits
334
- // )
334
+ // )
335
335
// {
336
336
337
337
// rewardUnits = new PackContent[](_numOfPacksToOpen * _rewardUnitsPerOpen);
338
338
// uint256 currentTotalSupply = totalSupply[_packId];
339
339
340
340
// uint256 random = uint(keccak256(abi.encodePacked(_msgSender(), blockhash(block.number), block.difficulty)));
341
341
// for(uint256 i = 0; i < (_numOfPacksToOpen * _rewardUnitsPerOpen); i += 1) {
342
-
342
+
343
343
// uint256 randomVal = uint256(keccak256(abi.encode(random, i)));
344
344
// uint256 target = randomVal % currentTotalSupply;
345
345
// uint256 step;
415
415
// Setter functions
416
416
// //////////////////////////////////////////////////////////////*/
417
417
418
-
419
-
420
418
// /// @dev Lets a contract admin update the default royalty recipient and bps.
421
419
// function setDefaultRoyaltyInfo(address _royaltyRecipient, uint256 _royaltyBps)
422
420
// external
511
509
// {
512
510
// return ERC2771ContextUpgradeable._msgData();
513
511
// }
514
- // }
512
+ // }
0 commit comments