Skip to content

Commit

Permalink
remove unused errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjatosba committed Feb 26, 2024
1 parent 2f9fd45 commit 021e87c
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 25 deletions.
6 changes: 0 additions & 6 deletions contracts/minters/minter/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,6 @@ pub enum ContractError {
#[error("Whitelist is already active")]
WhitelistAlreadyActive {},

#[error("Round start time is invalid")]
RoundStartTimeInvalid {},

#[error("Collection not found")]
CollectionNotFound {},

#[error("Error saving tokens")]
ErrorSavingTokens {},

Expand Down
3 changes: 0 additions & 3 deletions contracts/minters/multi-mint-oem/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ pub enum ContractError {
#[error("Round start time is invalid")]
RoundStartTimeInvalid {},

#[error("Collection not found")]
CollectionNotFound {},

#[error("Error saving tokens")]
ErrorSavingTokens {},

Expand Down
6 changes: 0 additions & 6 deletions contracts/minters/open-edition-minter/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,6 @@ pub enum ContractError {
#[error("Round start time is invalid")]
RoundStartTimeInvalid {},

#[error("Collection not found")]
CollectionNotFound {},

#[error("Error saving tokens")]
ErrorSavingTokens {},

#[error("Public minting ended")]
PublicMintingEnded {},

Expand Down
9 changes: 0 additions & 9 deletions contracts/whitelists/round-whitelist/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,12 @@ pub enum ContractError {
#[error("Invalid per address limit")]
InvalidPerAddressLimit {},

#[error("Invalid mint price")]
InvalidMintPrice {},

#[error("{0}")]
PaymentError(#[from] PaymentError),

#[error("Invalid end time")]
InvalidEndTime {},

#[error("Whitelist frozen")]
WhitelistFrozen {},

#[error("Round limit is reached")]
RoundReachedMintLimit {},

Expand All @@ -46,9 +40,6 @@ pub enum ContractError {
#[error("Round start time is invalid")]
RoundStartTimeInvalid {},

#[error("Collection not found")]
CollectionNotFound {},

#[error("Round does not exist")]
RoundNotFound {},

Expand Down
2 changes: 1 addition & 1 deletion contracts/whitelists/round-whitelist/src/msg.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use cosmwasm_schema::cw_serde;
use cosmwasm_std::{Coin, Timestamp};
use cosmwasm_std::Coin;

use whitelist_types::Round;

Expand Down

0 comments on commit 021e87c

Please sign in to comment.