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 ;
33
44// // ========== External imports ==========
55
281281// PackContent[] calldata _contents,
282282// uint256 _packId
283283// )
284- // internal
285- // returns (uint256 packTotalSupply)
284+ // internal
285+ // returns (uint256 packTotalSupply)
286286// {
287287// uint256 nativeTokenAmount;
288288
300300// nativeTokenAmount += _contents[i].token.totalAmount;
301301// } else {
302302// transferPackContent(
303- // _contents[i].token.assetContract,
303+ // _contents[i].token.assetContract,
304304// _contents[i].token.tokenType,
305305// _msgSender(),
306306// address(this),
312312
313313// if(nativeTokenAmount > 0) {
314314// transferPackContent(
315- // CurrencyTransferLib.NATIVE_TOKEN,
315+ // CurrencyTransferLib.NATIVE_TOKEN,
316316// TokenType.ERC20,
317317// _msgSender(),
318318// address(this),
327327// uint256 _packId,
328328// uint256 _numOfPacksToOpen,
329329// uint256 _rewardUnitsPerOpen
330- // )
330+ // )
331331// internal
332332// returns (
333333// PackContent[] memory rewardUnits
334- // )
334+ // )
335335// {
336336
337337// rewardUnits = new PackContent[](_numOfPacksToOpen * _rewardUnitsPerOpen);
338338// uint256 currentTotalSupply = totalSupply[_packId];
339339
340340// uint256 random = uint(keccak256(abi.encodePacked(_msgSender(), blockhash(block.number), block.difficulty)));
341341// for(uint256 i = 0; i < (_numOfPacksToOpen * _rewardUnitsPerOpen); i += 1) {
342-
342+
343343// uint256 randomVal = uint256(keccak256(abi.encode(random, i)));
344344// uint256 target = randomVal % currentTotalSupply;
345345// uint256 step;
415415// Setter functions
416416// //////////////////////////////////////////////////////////////*/
417417
418-
419-
420418// /// @dev Lets a contract admin update the default royalty recipient and bps.
421419// function setDefaultRoyaltyInfo(address _royaltyRecipient, uint256 _royaltyBps)
422420// external
511509// {
512510// return ERC2771ContextUpgradeable._msgData();
513511// }
514- // }
512+ // }
0 commit comments