Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Apr 14, 2024
1 parent 6157184 commit 602c0d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/anvil/src/eth/backend/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ impl<'a, DB: Db + ?Sized, Validator: TransactionValidator> TransactionExecutor<'
EnvWithHandlerCfg::new_with_cfg_env(
self.cfg_env.clone(),
self.block_env.clone(),
tx.to_revm_tx_env(),
tx_env,
)
}
}
Expand Down
3 changes: 2 additions & 1 deletion crates/anvil/src/eth/backend/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ use futures::channel::mpsc::{unbounded, UnboundedSender};
use parking_lot::{Mutex, RwLock};
use revm::{
db::WrapDatabaseRef,
primitives::{HashMap, ResultAndState},
primitives::{HashMap, OptimismFields, ResultAndState},
};
use std::{
collections::BTreeMap,
Expand Down Expand Up @@ -1134,6 +1134,7 @@ impl Backend {
chain_id: None,
nonce,
access_list: access_list.unwrap_or_default().flattened(),
optimism: OptimismFields { enveloped_tx: Some(Bytes::new()), ..Default::default() },
..Default::default()
};

Expand Down

0 comments on commit 602c0d0

Please sign in to comment.