Skip to content

Commit 40a6933

Browse files
Krishang NadgaudaKrishang Nadgauda
authored andcommitted
Update pack to reduce contract size
1 parent f91deca commit 40a6933

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

contracts/pack/Pack.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ contract Pack is
9999
bytes32 _transferRole = keccak256("TRANSFER_ROLE");
100100
bytes32 _minterRole = keccak256("MINTER_ROLE");
101101
bytes32 _assetRole = keccak256("ASSET_ROLE");
102-
// Initialize inherited contracts, most base-like -> most derived.
103-
__ReentrancyGuard_init();
104102

105103
/** note: The immutable state-variable `forwarder` is an EOA-only forwarder,
106104
* which guards against automated attacks.
@@ -265,7 +263,7 @@ contract Pack is
265263
}
266264

267265
/// @notice Lets a pack owner open packs and receive the packs' reward units.
268-
function openPack(uint256 _packId, uint256 _amountToOpen) external nonReentrant returns (Token[] memory) {
266+
function openPack(uint256 _packId, uint256 _amountToOpen) external returns (Token[] memory) {
269267
address opener = _msgSender();
270268

271269
require(isTrustedForwarder(msg.sender) || opener == tx.origin, "!EOA");

0 commit comments

Comments
 (0)