little cleanup

This commit is contained in:
Hardhat Chad
2024-03-24 14:24:49 +00:00
parent a54658af21
commit c29f08273a
4 changed files with 28 additions and 22 deletions

View File

@@ -5,7 +5,7 @@ use thiserror::Error;
#[derive(Debug, Error, Clone, Copy, PartialEq, Eq, IntoPrimitive)]
#[repr(u32)]
pub enum OreError {
#[error("The start time has not passed yet")]
#[error("The starting time has not passed yet")]
NotStarted = 0,
#[error("The epoch has ended and needs reset")]
NeedsReset = 1,
@@ -15,9 +15,9 @@ pub enum OreError {
HashInvalid = 3,
#[error("The provided hash does not satisfy the difficulty requirement")]
DifficultyNotSatisfied = 4,
#[error("The bus has insufficient rewards to issue at this time")]
#[error("The bus does not have enough rewards to issue at this time")]
BusRewardsInsufficient = 5,
#[error("The claim amount cannot be larger than the claimable rewards")]
#[error("The claim amount cannot be greater than the claimable rewards")]
ClaimTooLarge = 6,
}