Skip to content

Commit

Permalink
fix: properly set context env (#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Feb 10, 2024
1 parent bbca128 commit 52c517c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/revm/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ impl<'a, EXT, DB: Database> EvmBuilder<'a, SetGenericStage, EXT, DB> {

/// Sets Builder with [`EnvWithHandlerCfg`].
pub fn with_env_with_handler_cfg(
self,
mut self,
env_with_handler_cfg: EnvWithHandlerCfg,
) -> EvmBuilder<'a, HandlerStage, EXT, DB> {
let EnvWithHandlerCfg { env, handler_cfg } = env_with_handler_cfg;
self.context.evm.env = env;
EvmBuilder {
context: self.context,
handler: EvmBuilder::<'a, HandlerStage, EXT, DB>::handler(
env_with_handler_cfg.handler_cfg,
),
handler: EvmBuilder::<'a, HandlerStage, EXT, DB>::handler(handler_cfg),
phantom: PhantomData,
}
}
Expand Down

0 comments on commit 52c517c

Please sign in to comment.