Skip to content

Commit

Permalink
chore: replace reth-interface usage (paradigmxyz#8394)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored and mw2000 committed Jun 5, 2024
1 parent c4dcddc commit 54e9607
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/optimism/evm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ workspace = true
reth-evm.workspace = true
reth-primitives.workspace = true
reth-revm.workspace = true
reth-interfaces.workspace = true
reth-execution-errors.workspace = true
reth-provider.workspace = true
reth-consensus-common.workspace = true

Expand Down
8 changes: 3 additions & 5 deletions crates/optimism/evm/src/l1.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Optimism-specific implementation and utilities for the executor
use crate::OptimismBlockExecutionError;
use reth_interfaces::{executor::BlockExecutionError, RethError};
use reth_execution_errors::BlockExecutionError;
use reth_primitives::{address, b256, hex, Address, Block, Bytes, ChainSpec, Hardfork, B256, U256};
use revm::{
primitives::{Bytecode, HashMap, SpecId},
Expand Down Expand Up @@ -232,7 +232,7 @@ pub fn ensure_create2_deployer<DB>(
chain_spec: Arc<ChainSpec>,
timestamp: u64,
db: &mut revm::State<DB>,
) -> Result<(), RethError>
) -> Result<(), DB::Error>
where
DB: revm::Database,
{
Expand All @@ -246,9 +246,7 @@ where
trace!(target: "evm", "Forcing create2 deployer contract deployment on Canyon transition");

// Load the create2 deployer account from the cache.
let acc = db
.load_cache_account(CREATE_2_DEPLOYER_ADDR)
.map_err(|_| RethError::Custom("Failed to load account".to_string()))?;
let acc = db.load_cache_account(CREATE_2_DEPLOYER_ADDR)?;

// Update the account info with the create2 deployer codehash and bytecode.
let mut acc_info = acc.account_info().unwrap_or_default();
Expand Down

0 comments on commit 54e9607

Please sign in to comment.