File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
crates/anvil/src/eth/backend/mem Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ use alloy_consensus::{
4242} ;
4343use alloy_eip5792:: { Capabilities , DelegationCapability } ;
4444use alloy_eips:: {
45+ Encodable2718 ,
4546 eip1559:: BaseFeeParams ,
4647 eip4844:: { BlobTransactionSidecar , kzg_to_versioned_hash} ,
4748 eip7840:: BlobParams ,
@@ -2767,7 +2768,10 @@ impl Backend {
27672768
27682769 let target_tx = block. transactions [ index] . clone ( ) ;
27692770 let target_tx = PendingTransaction :: from_maybe_impersonated ( target_tx) ?;
2770- let tx_env = target_tx. to_revm_tx_env ( ) ;
2771+ let mut tx_env = target_tx. to_revm_tx_env ( ) ;
2772+ if env. networks . is_optimism ( ) {
2773+ tx_env. enveloped_tx = Some ( target_tx. transaction . transaction . encoded_2718 ( ) . into ( ) ) ;
2774+ }
27712775
27722776 let mut evm = self . new_evm_with_inspector_ref ( & cache_db, & env, & mut inspector) ;
27732777
You can’t perform that action at this time.
0 commit comments