overflow check

This commit is contained in:
Hardhat Chad
2024-04-30 18:52:20 +00:00
parent 93657d02cc
commit aa27fc6f13
3 changed files with 10 additions and 8 deletions

View File

@@ -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 {