This commit is contained in:
Hardhat Chad
2024-07-26 21:26:47 +00:00
parent c0c16f5e81
commit 3bfe8506f4
5 changed files with 70 additions and 84 deletions

View File

@@ -23,14 +23,8 @@ pub enum OreError {
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 the declared proof can be processed in this transaction")]
DeclaredProofMissmatch = 11,
#[error("Failed to find and parse the declared proof from the transaction")]
FindAndParseDeclaredProofFailed = 12,
#[error("The proof does not match the expected account")]
AuthFailed = 9,
}
impl From<OreError> for ProgramError {