mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-17 23:16:48 +00:00
overflow check
This commit is contained in:
@@ -17,8 +17,8 @@ pub enum OreError {
|
||||
StakeTooLarge = 4,
|
||||
#[error("The clock time is invalid")]
|
||||
ClockInvalid = 5,
|
||||
#[error("The tolerance cannot be negative")]
|
||||
ToleranceNegative = 6,
|
||||
#[error("The tolerance cannot exceed i64 max value")]
|
||||
ToleranceInvalid = 6,
|
||||
}
|
||||
|
||||
impl From<OreError> for ProgramError {
|
||||
|
||||
Reference in New Issue
Block a user