From 083d06c02440bc90370a3effc426ca65fab3f853 Mon Sep 17 00:00:00 2001 From: Hardhat Chad Date: Fri, 26 Jul 2024 22:11:10 +0000 Subject: [PATCH] remove unneeded errors --- api/src/error.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/api/src/error.rs b/api/src/error.rs index e3d8ee0..2b80b3f 100644 --- a/api/src/error.rs +++ b/api/src/error.rs @@ -17,16 +17,10 @@ pub enum OreError { ClockInvalid = 4, #[error("You are trying to submit too soon")] Spam = 5, - #[error("Only one hash may be validated per transaction")] - TransactionInvalid = 6, - #[error("The tolerance cannot exceed i64 max value")] - ToleranceOverflow = 7, #[error("The maximum supply has been reached")] MaxSupply = 8, - #[error("This account cannot be closed because it's the top staker")] - CannotClose = 9, - #[error("This account cannot be crowned because its last stake was too recent")] - CannotCrown = 10, + #[error("Only one hash may be validated per transaction")] + TransactionInvalid = 7, } impl From for ProgramError {