From 53f72976186ff43a781abd810d5ba702bf3e5f4c Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 6 Dec 2024 20:57:01 +0100 Subject: [PATCH] chore: rm validate delegate (#13190) --- crates/primitives/src/transaction/sidecar.rs | 11 ----------- crates/rpc/rpc/src/eth/bundle.rs | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/crates/primitives/src/transaction/sidecar.rs b/crates/primitives/src/transaction/sidecar.rs index 2cf04bc8e..e244a53df 100644 --- a/crates/primitives/src/transaction/sidecar.rs +++ b/crates/primitives/src/transaction/sidecar.rs @@ -39,17 +39,6 @@ impl BlobTransaction { } } - /// Verifies that the transaction's blob data, commitments, and proofs are all valid. - /// - /// See also [`alloy_consensus::TxEip4844::validate_blob`] - #[cfg(feature = "c-kzg")] - pub fn validate( - &self, - proof_settings: &c_kzg::KzgSettings, - ) -> Result<(), alloy_eips::eip4844::BlobTransactionValidationError> { - self.tx().validate_blob(proof_settings) - } - /// Splits the [`BlobTransaction`] into its [`TransactionSigned`] and [`BlobTransactionSidecar`] /// components. pub fn into_parts(self) -> (TransactionSigned, BlobTransactionSidecar) { diff --git a/crates/rpc/rpc/src/eth/bundle.rs b/crates/rpc/rpc/src/eth/bundle.rs index ba142651f..478d1de1c 100644 --- a/crates/rpc/rpc/src/eth/bundle.rs +++ b/crates/rpc/rpc/src/eth/bundle.rs @@ -198,7 +198,7 @@ where // Verify that the given blob data, commitments, and proofs are all valid for // this transaction. if let PooledTransactionsElement::BlobTransaction(ref tx) = tx { - tx.validate(EnvKzgSettings::Default.get()).map_err(|e| { + tx.tx().validate_blob(EnvKzgSettings::Default.get()).map_err(|e| { Eth::Error::from_eth_err(EthApiError::InvalidParams(e.to_string())) })?; }