Skip to content

Commit

Permalink
remove unused errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Apr 6, 2024
1 parent 1525d67 commit 64faec6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 67 deletions.
65 changes: 0 additions & 65 deletions src/lib/SeaDropErrorsAndEvents.sol
Original file line number Diff line number Diff line change
Expand Up @@ -162,71 +162,6 @@ interface SeaDropErrorsAndEvents {
*/
error InvalidStartAndEndTime(uint256 startTime, uint256 endTime);

/**
* @dev Revert with an error if the signer payment token is not the same.
*/
error InvalidSignedPaymentToken(address got, address want);

/**
* @dev Revert with an error if supplied signed mint price is less than
* the minimum specified.
*/
error InvalidSignedMintPrice(
address paymentToken,
uint256 got,
uint256 minimum
);

/**
* @dev Revert with an error if supplied signed maxTotalMintableByWallet
* is greater than the maximum specified.
*/
error InvalidSignedMaxTotalMintableByWallet(uint256 got, uint256 maximum);

/**
* @dev Revert with an error if supplied signed
* maxTotalMintableByWalletPerToken is greater than the maximum
* specified.
*/
error InvalidSignedMaxTotalMintableByWalletPerToken(
uint256 got,
uint256 maximum
);

/**
* @dev Revert with an error if the fromTokenId is not within range.
*/
error InvalidSignedFromTokenId(uint256 got, uint256 minimum);

/**
* @dev Revert with an error if the toTokenId is not within range.
*/
error InvalidSignedToTokenId(uint256 got, uint256 maximum);

/**
* @dev Revert with an error if supplied signed start time is less than
* the minimum specified.
*/
error InvalidSignedStartTime(uint256 got, uint256 minimum);

/**
* @dev Revert with an error if supplied signed end time is greater than
* the maximum specified.
*/
error InvalidSignedEndTime(uint256 got, uint256 maximum);

/**
* @dev Revert with an error if supplied signed maxTokenSupplyForStage
* is greater than the maximum specified.
*/
error InvalidSignedMaxTokenSupplyForStage(uint256 got, uint256 maximum);

/**
* @dev Revert with an error if supplied signed feeBps is greater than
* the maximum specified, or less than the minimum.
*/
error InvalidSignedFeeBps(uint256 got, uint256 minimumOrMaximum);

/**
* @dev Revert with an error if signed mint did not specify to restrict
* fee recipients.
Expand Down
2 changes: 1 addition & 1 deletion test/ERC1155SeaDrop-mintSigned.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ describe(`ERC1155SeaDrop - Mint Signed (v${VERSION})`, function () {
).to.be.revertedWithCustomError(
marketplaceContract,
"InvalidContractOrder"
); // InvalidSignedFeeBps
); // InvalidFeeBps
});

it("Should allow delegated payers to mint via the DelegationRegistry", async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/ERC721SeaDrop-mintSigned.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ describe(`ERC721SeaDrop - Mint Signed (v${VERSION})`, function () {
).to.be.revertedWithCustomError(
marketplaceContract,
"InvalidContractOrder"
); // InvalidSignedFeeBps
); // InvalidFeeBps
});

it("Should allow delegated payers to mint via the DelegationRegistry", async () => {
Expand Down

0 comments on commit 64faec6

Please sign in to comment.