Skip to content

Commit

Permalink
fix: use modify specid instead (#7427)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Apr 2, 2024
1 parent f63cebb commit 16c76b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/revm/src/processor.rs
Expand Up @@ -19,7 +19,7 @@ use revm::{
inspector_handle_register,
interpreter::Host,
primitives::{CfgEnvWithHandlerCfg, ResultAndState},
Evm, Handler, State, StateBuilder,
Evm, State, StateBuilder,
};
use std::{sync::Arc, time::Instant};

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

// This will update the spec in case it changed
self.evm.modify_spec_id(cfg.handler_cfg.spec_id);
}

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

0 comments on commit 16c76b6

Please sign in to comment.