Skip to content

Commit

Permalink
fix: optimism compilation (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
makcandrov committed Feb 15, 2024
1 parent d6bd010 commit 94894a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/primitives/src/env/handler_cfg.rs
Expand Up @@ -20,7 +20,7 @@ impl HandlerCfg {
cfg_if::cfg_if! {
if #[cfg(all(feature = "optimism_default_handler",
not(feature = "negate_optimism_default_handler")))] {
let is_optimism: true;
let is_optimism = true;
} else if #[cfg(feature = "optimism")] {
let is_optimism = false;
}
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/builder.rs
Expand Up @@ -34,7 +34,7 @@ impl<'a> Default for EvmBuilder<'a, SetGenericStage, (), EmptyDB> {
if #[cfg(all(feature = "optimism_default_handler",
not(feature = "negate_optimism_default_handler")))] {
let mut handler_cfg = HandlerCfg::new(SpecId::LATEST);
/// set is_optimism to true by default.
// set is_optimism to true by default.
handler_cfg.is_optimism = true;

} else {
Expand Down

0 comments on commit 94894a5

Please sign in to comment.