Skip to content

Commit

Permalink
chore: use core::error for blob validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Jan 4, 2025
1 parent 40e3378 commit d842cbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/eips/src/eip4844/sidecar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,9 @@ pub enum BlobTransactionValidationError {
},
}

#[cfg(all(feature = "kzg", feature = "std"))]
impl std::error::Error for BlobTransactionValidationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
#[cfg(feature = "kzg")]
impl core::error::Error for BlobTransactionValidationError {
fn source(&self) -> Option<&(dyn core::error::Error + 'static)> {
match self {
Self::KZGError(source) => Some(source),
Self::InvalidProof { .. }
Expand Down

0 comments on commit d842cbe

Please sign in to comment.