Skip to content

Commit dab0e88

Browse files
authored
chore(l2): remove unused revm modules (#2587)
**Motivation** Now that the L2 has fully defaulted to levm, both for execution and proving, these modules became unused. **Description** <!-- A clear and concise general description of the changes this PR introduces --> <!-- Link to issues: Resolves #111, Resolves #222 --> Closes #issue_number
1 parent 69900a4 commit dab0e88

File tree

3 files changed

+0
-221
lines changed

3 files changed

+0
-221
lines changed

crates/vm/backends/revm/execution_db.rs

Lines changed: 0 additions & 157 deletions
This file was deleted.

crates/vm/backends/revm/mod.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
pub mod db;
22
pub mod helpers;
3-
#[cfg(feature = "l2")]
4-
mod mods;
53

64
use super::BlockExecutionResult;
75
use crate::constants::{
@@ -412,21 +410,6 @@ fn run_evm(
412410
.with_external_context(
413411
TracerEip3155::new(Box::new(std::io::stderr())).without_summary(),
414412
);
415-
cfg_if::cfg_if! {
416-
if #[cfg(feature = "l2")] {
417-
use revm::{Handler, primitives::{CancunSpec, HandlerCfg}};
418-
use std::sync::Arc;
419-
420-
evm_builder = evm_builder.with_handler({
421-
let mut evm_handler = Handler::new(HandlerCfg::new(SpecId::LATEST));
422-
evm_handler.pre_execution.deduct_caller = Arc::new(mods::deduct_caller::<CancunSpec, _, _>);
423-
evm_handler.validation.tx_against_state = Arc::new(mods::validate_tx_against_state::<CancunSpec, _, _>);
424-
// TODO: Override `end` function. We should deposit even if we revert.
425-
// evm_handler.pre_execution.end
426-
evm_handler
427-
});
428-
}
429-
}
430413

431414
match state {
432415
EvmState::Store(db) => {

crates/vm/backends/revm/mods.rs

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)