From a7934ed32c2e5e13b5fc0760951f723ab12d4116 Mon Sep 17 00:00:00 2001 From: blockchaindevsh Date: Tue, 14 Apr 2026 15:54:33 +0800 Subject: [PATCH] feat(op): add EIP-4844 blob transaction support for OpTxEnvelope Add Eip4844 match arms to FromRecoveredTx and FromTxWithEncoded impls for OpTxEnvelope, enabling L2 blob transaction execution. Co-Authored-By: Claude Opus 4.6 (1M context) --- crates/evm/src/op/tx.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/evm/src/op/tx.rs b/crates/evm/src/op/tx.rs index c4f02eb9..12ba82a3 100644 --- a/crates/evm/src/op/tx.rs +++ b/crates/evm/src/op/tx.rs @@ -15,6 +15,7 @@ impl FromRecoveredTx for TxEnv { OpTxEnvelope::Legacy(tx) => Self::from_recovered_tx(tx.tx(), caller), OpTxEnvelope::Eip1559(tx) => Self::from_recovered_tx(tx.tx(), caller), OpTxEnvelope::Eip2930(tx) => Self::from_recovered_tx(tx.tx(), caller), + OpTxEnvelope::Eip4844(tx) => Self::from_recovered_tx(tx.tx(), caller), OpTxEnvelope::Eip7702(tx) => Self::from_recovered_tx(tx.tx(), caller), OpTxEnvelope::Deposit(tx) => Self::from_recovered_tx(tx.inner(), caller), } @@ -64,6 +65,7 @@ impl FromTxWithEncoded for OpTransaction { OpTxEnvelope::Legacy(tx) => Self::from_encoded_tx(tx, caller, encoded), OpTxEnvelope::Eip1559(tx) => Self::from_encoded_tx(tx, caller, encoded), OpTxEnvelope::Eip2930(tx) => Self::from_encoded_tx(tx, caller, encoded), + OpTxEnvelope::Eip4844(tx) => Self::from_encoded_tx(tx, caller, encoded), OpTxEnvelope::Eip7702(tx) => Self::from_encoded_tx(tx, caller, encoded), OpTxEnvelope::Deposit(tx) => Self::from_encoded_tx(tx.inner(), caller, encoded), }