mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-28 15:11:04 +00:00
auth
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user