Skip to content

Commit

Permalink
use is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Apr 12, 2024
1 parent 8a0fc50 commit 6157184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/anvil/src/eth/backend/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<u64>();
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::<u128>())
} else {
None
Expand Down

0 comments on commit 6157184

Please sign in to comment.