From 58cd4c5ed87c0f61eafea1e4da71072806bbcfba Mon Sep 17 00:00:00 2001 From: yjh Date: Mon, 15 Apr 2024 19:30:16 +0800 Subject: [PATCH] chore: update `decode_enveloped` docs (#7645) --- crates/primitives/src/transaction/mod.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/primitives/src/transaction/mod.rs b/crates/primitives/src/transaction/mod.rs index 7c57495fed..abc810b9e2 100644 --- a/crates/primitives/src/transaction/mod.rs +++ b/crates/primitives/src/transaction/mod.rs @@ -1491,9 +1491,9 @@ impl TransactionSigned { /// Decodes the "raw" format of transaction (similar to `eth_sendRawTransaction`). /// - /// This should be used for any RPC method that accepts a raw transaction, **excluding** raw - /// EIP-4844 transactions in `eth_sendRawTransaction`. Currently, this includes: - /// * `eth_sendRawTransaction` for non-EIP-4844 transactions. + /// This should be used for any RPC method that accepts a raw transaction. + /// Currently, this includes: + /// * `eth_sendRawTransaction`. /// * All versions of `engine_newPayload`, in the `transactions` field. /// /// A raw transaction is either a legacy transaction or EIP-2718 typed transaction. @@ -1503,9 +1503,6 @@ impl TransactionSigned { /// /// For EIP-2718 typed transactions, the format is encoded as the type of the transaction /// followed by the rlp of the transaction: `type || rlp(tx-data)`. - /// - /// To decode EIP-4844 transactions from `eth_sendRawTransaction`, use - /// [PooledTransactionsElement::decode_enveloped]. pub fn decode_enveloped(data: &mut &[u8]) -> alloy_rlp::Result { if data.is_empty() { return Err(RlpError::InputTooShort)