diff --git a/crates/eips/src/eip4844/sidecar.rs b/crates/eips/src/eip4844/sidecar.rs index f357ba91b2b..8273344dde0 100644 --- a/crates/eips/src/eip4844/sidecar.rs +++ b/crates/eips/src/eip4844/sidecar.rs @@ -455,18 +455,8 @@ pub enum BlobTransactionValidationError { }, } -#[cfg(all(feature = "kzg", feature = "std"))] -impl std::error::Error for BlobTransactionValidationError { - fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { - match self { - Self::KZGError(source) => Some(source), - Self::InvalidProof { .. } - | Self::NotBlobTransaction { .. } - | Self::MissingSidecar { .. } - | Self::WrongVersionedHash { .. } => None, - } - } -} +#[cfg(feature = "kzg")] +impl core::error::Error for BlobTransactionValidationError {} #[cfg(feature = "kzg")] impl core::fmt::Display for BlobTransactionValidationError {