@@ -6,7 +6,6 @@ import "../lib/MerkleProof.sol";
66import "@openzeppelin/contracts-upgradeable/utils/structs/BitMapsUpgradeable.sol " ;
77
88abstract contract DropSinglePhase is IDropSinglePhase {
9-
109 using BitMapsUpgradeable for BitMapsUpgradeable.BitMap;
1110
1211 /// @dev The active conditions for claiming lazy minted tokens.
@@ -49,7 +48,6 @@ abstract contract DropSinglePhase is IDropSinglePhase {
4948 AllowlistProof calldata _allowlistProof ,
5049 bytes memory _data
5150 ) external payable virtual {
52-
5351 _beforeClaim (_receiver, _quantity, _currency, _pricePerToken, _allowlistProof, _data);
5452
5553 bytes32 activeConditionId = conditionId;
@@ -70,13 +68,7 @@ abstract contract DropSinglePhase is IDropSinglePhase {
7068 // Verify claim validity. If not valid, revert.
7169 bool toVerifyMaxQuantityPerTransaction = _allowlistProof.maxQuantityInAllowlist == 0 ;
7270
73- verifyClaim (
74- _msgSender (),
75- _quantity,
76- _currency,
77- _pricePerToken,
78- toVerifyMaxQuantityPerTransaction
79- );
71+ verifyClaim (_msgSender (), _quantity, _currency, _pricePerToken, toVerifyMaxQuantityPerTransaction);
8072
8173 if (validMerkleProof && _allowlistProof.maxQuantityInAllowlist > 0 ) {
8274 /**
@@ -109,14 +101,12 @@ abstract contract DropSinglePhase is IDropSinglePhase {
109101 ) internal virtual ;
110102
111103 /// @dev Transfers the NFTs being claimed.
112- function transferClaimedTokens (
113- address _to ,
114- uint256 _quantityBeingClaimed
115- ) internal virtual returns (uint256 startTokenId );
116-
117- function setClaimCondition (ClaimCondition calldata _condition , bool _resetClaimEligibility )
118- external
119- {
104+ function transferClaimedTokens (address _to , uint256 _quantityBeingClaimed )
105+ internal
106+ virtual
107+ returns (uint256 startTokenId );
108+
109+ function setClaimCondition (ClaimCondition calldata _condition , bool _resetClaimEligibility ) external {
120110 if (_resetClaimEligibility) {
121111 conditionId = keccak256 (abi.encodePacked (msg .sender , block .number ));
122112 }
@@ -170,7 +160,11 @@ abstract contract DropSinglePhase is IDropSinglePhase {
170160 // );
171161
172162 uint256 timestampOfLastClaim = lastClaimTimestamp[conditionId][_claimer];
173- require (timestampOfLastClaim == 0 || block .timestamp >= timestampOfLastClaim + currentClaimPhase.waitTimeInSecondsBetweenClaims, "cannot claim. " );
163+ require (
164+ timestampOfLastClaim == 0 ||
165+ block .timestamp >= timestampOfLastClaim + currentClaimPhase.waitTimeInSecondsBetweenClaims,
166+ "cannot claim. "
167+ );
174168 }
175169
176170 /// @dev Checks whether a claimer meets the claim condition's allowlist criteria.
@@ -195,5 +189,4 @@ abstract contract DropSinglePhase is IDropSinglePhase {
195189 );
196190 }
197191 }
198-
199- }
192+ }
0 commit comments