@@ -4,27 +4,13 @@ pragma solidity ^0.8.11;
44// ========== External imports ==========
55import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol " ;
66
7- import "@openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155Upgradeable.sol " ;
8- import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol " ;
9-
10- import "@openzeppelin/contracts-upgradeable/token/ERC1155/utils/ERC1155HolderUpgradeable.sol " ;
11- import "@openzeppelin/contracts-upgradeable/token/ERC721/utils/ERC721HolderUpgradeable.sol " ;
12- import "@openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155Upgradeable.sol " ;
13- import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol " ;
14-
157import "@openzeppelin/contracts-upgradeable/utils/MulticallUpgradeable.sol " ;
16- import "@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol " ;
178import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol " ;
189import "@openzeppelin/contracts-upgradeable/interfaces/IERC2981Upgradeable.sol " ;
1910
2011// ========== Internal imports ==========
2112
22- import "../interfaces/IThirdwebContract.sol " ;
23- import "../feature/interface/IRoyalty.sol " ;
24- import "../feature/interface/IOwnable.sol " ;
25-
2613import "../interfaces/IMultiwrap.sol " ;
27- import "../lib/CurrencyTransferLib.sol " ;
2814import "../openzeppelin-presets/metatx/ERC2771ContextUpgradeable.sol " ;
2915
3016// ========== Features ==========
@@ -86,21 +72,21 @@ contract Multiwrap is
8672 __ERC2771Context_init (_trustedForwarders);
8773 __ERC721_init (_name, _symbol);
8874
89- // _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());
75+ // Revoked at the end of the function.
76+ _setupRole (DEFAULT_ADMIN_ROLE, _msgSender ());
9077
91- // // Initialize this contract's state.
92- // royaltyRecipient = _royaltyRecipient;
93- // royaltyBps = uint128(_royaltyBps);
94- // contractURI = _contractURI;
95- // _owner = _defaultAdmin;
78+ // Initialize this contract's state.
79+ setDefaultRoyaltyInfo (_royaltyRecipient, _royaltyBps);
80+ setOwner (_defaultAdmin);
81+ setContractURI (_contractURI);
9682
97- // _setupRole(DEFAULT_ADMIN_ROLE, _defaultAdmin);
98- // _setupRole(MINTER_ROLE, _defaultAdmin);
99- // _setupRole(TRANSFER_ROLE, _defaultAdmin);
100- // _setupRole(TRANSFER_ROLE, address(0));
101- // _setupRole(UNWRAP_ROLE, address(0));
83+ _setupRole (DEFAULT_ADMIN_ROLE, _defaultAdmin);
84+ _setupRole (MINTER_ROLE, _defaultAdmin);
85+ _setupRole (TRANSFER_ROLE, _defaultAdmin);
86+ _setupRole (TRANSFER_ROLE, address (0 ));
87+ _setupRole (UNWRAP_ROLE, address (0 ));
10288
103- // _revokeRole(DEFAULT_ADMIN_ROLE, _msgSender());
89+ _revokeRole (DEFAULT_ADMIN_ROLE, _msgSender ());
10490 }
10591
10692 /*///////////////////////////////////////////////////////////////
0 commit comments