Skip to content

Commit

Permalink
fix(op): set handler cfg correctly in EvmProcessor (#6609)
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita authored Feb 14, 2024
1 parent 66264e2 commit 99764b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/revm/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use revm::{
inspector_handle_register,
interpreter::Host,
primitives::{CfgEnvWithHandlerCfg, ResultAndState},
Evm, State, StateBuilder,
Evm, Handler, State, StateBuilder,
};
use std::{sync::Arc, time::Instant};

Expand Down Expand Up @@ -187,7 +187,7 @@ where
total_difficulty,
);
*self.evm.cfg_mut() = cfg.cfg_env;
self.evm.handler.modify_spec_id(cfg.handler_cfg.spec_id);
self.evm.handler = Handler::new(cfg.handler_cfg);
}

/// Applies the pre-block call to the EIP-4788 beacon block root contract.
Expand Down

0 comments on commit 99764b8

Please sign in to comment.