From 61571848142b1087bb8ca3d610f302cc13dfee8b Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 12 Apr 2024 20:50:27 +0200 Subject: [PATCH] use is enabled --- crates/anvil/src/eth/backend/executor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/anvil/src/eth/backend/executor.rs b/crates/anvil/src/eth/backend/executor.rs index b13b42eeef3f4..1db2cdf4f2ec5 100644 --- a/crates/anvil/src/eth/backend/executor.rs +++ b/crates/anvil/src/eth/backend/executor.rs @@ -118,7 +118,7 @@ impl<'a, DB: Db + ?Sized, Validator: TransactionValidator> TransactionExecutor<' let difficulty = self.block_env.difficulty; let beneficiary = self.block_env.coinbase; let timestamp = self.block_env.timestamp.to::(); - let base_fee = if self.cfg_env.handler_cfg.spec_id >= SpecId::LONDON { + let base_fee = if self.cfg_env.handler_cfg.spec_id.is_enabled_in(SpecId::LONDON) { Some(self.block_env.basefee.to::()) } else { None