@@ -34,10 +34,6 @@ abstract contract DropSinglePhase is IDropSinglePhase {
3434 */
3535 mapping (bytes32 => TWBitMaps.BitMap) private usedAllowlistSpot;
3636
37- /*///////////////////////////////////////////////////////////////
38- Errors
39- //////////////////////////////////////////////////////////////*/
40-
4137 /*///////////////////////////////////////////////////////////////
4238 Drop logic
4339 //////////////////////////////////////////////////////////////*/
@@ -103,7 +99,7 @@ abstract contract DropSinglePhase is IDropSinglePhase {
10399 /// @dev Lets a contract admin set claim conditions.
104100 function setClaimConditions (ClaimCondition calldata _condition , bool _resetClaimEligibility ) external override {
105101 if (! _canSetClaimConditions ()) {
106- revert DropSinglePhase__NotAuthorized ( );
102+ revert ( " Not authorized " );
107103 }
108104
109105 bytes32 targetConditionId = conditionId;
@@ -115,7 +111,7 @@ abstract contract DropSinglePhase is IDropSinglePhase {
115111 }
116112
117113 if (supplyClaimedAlready > _condition.maxClaimableSupply) {
118- revert DropSinglePhase__MaxSupplyClaimedAlready (supplyClaimedAlready );
114+ revert ( " max supply claimed already " );
119115 }
120116
121117 claimCondition = ClaimCondition ({
@@ -144,40 +140,27 @@ abstract contract DropSinglePhase is IDropSinglePhase {
144140 ClaimCondition memory currentClaimPhase = claimCondition;
145141
146142 if (_currency != currentClaimPhase.currency || _pricePerToken != currentClaimPhase.pricePerToken) {
147- revert DropSinglePhase__InvalidCurrencyOrPrice (
148- _currency,
149- currentClaimPhase.currency,
150- _pricePerToken,
151- currentClaimPhase.pricePerToken
152- );
143+ revert ("Invalid price or currency " );
153144 }
154145
155146 // If we're checking for an allowlist quantity restriction, ignore the general quantity restriction.
156147 if (
157148 _quantity == 0 ||
158149 (verifyMaxQuantityPerTransaction && _quantity > currentClaimPhase.quantityLimitPerTransaction)
159150 ) {
160- revert DropSinglePhase__InvalidQuantity ( );
151+ revert ( " Invalid quantity " );
161152 }
162153
163154 if (currentClaimPhase.supplyClaimed + _quantity > currentClaimPhase.maxClaimableSupply) {
164- revert DropSinglePhase__ExceedMaxClaimableSupply (
165- currentClaimPhase.supplyClaimed,
166- currentClaimPhase.maxClaimableSupply
167- );
155+ revert ("exceeds max supply " );
168156 }
169157
170158 (uint256 lastClaimedAt , uint256 nextValidClaimTimestamp ) = getClaimTimestamp (_claimer);
171159 if (
172160 currentClaimPhase.startTimestamp > block .timestamp ||
173161 (lastClaimedAt != 0 && block .timestamp < nextValidClaimTimestamp)
174162 ) {
175- revert DropSinglePhase__CannotClaimYet (
176- block .timestamp ,
177- currentClaimPhase.startTimestamp,
178- lastClaimedAt,
179- nextValidClaimTimestamp
180- );
163+ revert ("cant claim yet " );
181164 }
182165 }
183166
@@ -196,15 +179,15 @@ abstract contract DropSinglePhase is IDropSinglePhase {
196179 keccak256 (abi.encodePacked (_claimer, _allowlistProof.maxQuantityInAllowlist))
197180 );
198181 if (! validMerkleProof) {
199- revert DropSinglePhase__NotInWhitelist ( );
182+ revert ( " not in allowlist " );
200183 }
201184
202185 if (usedAllowlistSpot[conditionId].get (merkleProofIndex)) {
203- revert DropSinglePhase__ProofClaimed ( );
186+ revert ( " proof claimed " );
204187 }
205188
206189 if (_allowlistProof.maxQuantityInAllowlist != 0 && _quantity > _allowlistProof.maxQuantityInAllowlist) {
207- revert DropSinglePhase__InvalidQuantityProof (_allowlistProof.maxQuantityInAllowlist );
190+ revert ( " Invalid qty proof " );
208191 }
209192 }
210193 }
0 commit comments