Skip to content

Commit cc0832d

Browse files
committed
remove unused enum variant and change VerifierError -> Verifier
1 parent bae55d4 commit cc0832d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

eip7594/src/errors.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ use crate::CellIndex;
66
#[derive(Debug)]
77
pub enum Error {
88
Prover(ProverError),
9-
VerifierError(VerifierError),
9+
Verifier(VerifierError),
1010
Serialization(SerializationError),
1111
}
1212

1313
impl Error {
1414
pub fn invalid_proof(&self) -> bool {
15-
matches!(self, Error::VerifierError(VerifierError::InvalidProof))
15+
matches!(self, Error::Verifier(VerifierError::InvalidProof))
1616
}
1717
}
1818

@@ -23,7 +23,7 @@ impl From<ProverError> for Error {
2323
}
2424
impl From<VerifierError> for Error {
2525
fn from(value: VerifierError) -> Self {
26-
Error::VerifierError(value)
26+
Error::Verifier(value)
2727
}
2828
}
2929
impl From<SerializationError> for Error {
@@ -35,8 +35,6 @@ impl From<SerializationError> for Error {
3535
/// Errors that can occur while calling a method in the Prover API
3636
#[derive(Debug)]
3737
pub enum ProverError {
38-
// TODO: This will be getting removed, waiting for consensus-specs PR
39-
NumProofsDoesNotEqualNumCells,
4038
RecoveryFailure(VerifierError),
4139
}
4240

0 commit comments

Comments
 (0)