Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions contract/contracts/event_registry/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ pub enum EventRegistryError {
InvalidTargetDeadline = 44,
/// Admin has already approved this proposal
AlreadyApproved = 45,
/// Two or more ticket tiers share the same ID
DuplicateTierId = 46,
}

impl core::fmt::Display for EventRegistryError {
Expand Down Expand Up @@ -216,6 +218,9 @@ impl core::fmt::Display for EventRegistryError {
EventRegistryError::AlreadyApproved => {
write!(f, "Admin has already approved this proposal")
}
EventRegistryError::DuplicateTierId => {
write!(f, "Duplicate tier ID: all tier IDs must be unique")
}
}
}
}
Loading
Loading