Skip to content

Commit

Permalink
remove unused enum variant and change VerifierError -> Verifier
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed Jul 30, 2024
1 parent bae55d4 commit cc0832d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions eip7594/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ use crate::CellIndex;
#[derive(Debug)]
pub enum Error {
Prover(ProverError),
VerifierError(VerifierError),
Verifier(VerifierError),
Serialization(SerializationError),
}

impl Error {
pub fn invalid_proof(&self) -> bool {
matches!(self, Error::VerifierError(VerifierError::InvalidProof))
matches!(self, Error::Verifier(VerifierError::InvalidProof))
}
}

Expand All @@ -23,7 +23,7 @@ impl From<ProverError> for Error {
}
impl From<VerifierError> for Error {
fn from(value: VerifierError) -> Self {
Error::VerifierError(value)
Error::Verifier(value)
}
}
impl From<SerializationError> for Error {
Expand All @@ -35,8 +35,6 @@ impl From<SerializationError> for Error {
/// Errors that can occur while calling a method in the Prover API
#[derive(Debug)]
pub enum ProverError {
// TODO: This will be getting removed, waiting for consensus-specs PR
NumProofsDoesNotEqualNumCells,
RecoveryFailure(VerifierError),
}

Expand Down

0 comments on commit cc0832d

Please sign in to comment.