Skip to content

Commit

Permalink
fix(executor): Removes EIP-7002 and EIP-7251 Pre-block Calls (#990)
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell authored Feb 3, 2025
1 parent f7d5183 commit 7b24057
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 211 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 1 addition & 20 deletions crates/executor/src/executor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ use crate::{
errors::TrieDBError,
syscalls::{
ensure_create2_deployer_canyon, pre_block_beacon_root_contract_call,
pre_block_block_hash_contract_call, pre_block_consolidation_requests_contract_call,
pre_block_withdrawals_request_contract_call,
pre_block_block_hash_contract_call,
},
ExecutorError, ExecutorResult, TrieDBProvider,
};
Expand Down Expand Up @@ -164,24 +163,6 @@ where
&payload,
)?;

// Apply the pre-block EIP-7002 contract call.
pre_block_withdrawals_request_contract_call(
&mut state,
self.config,
&initialized_cfg,
&initialized_block_env,
&payload,
)?;

// Apply the pre-block EIP-7251 contract call.
pre_block_consolidation_requests_contract_call(
&mut state,
self.config,
&initialized_cfg,
&initialized_block_env,
&payload,
)?;

// Ensure that the create2 contract is deployed upon transition to the Canyon hardfork.
ensure_create2_deployer_canyon(
&mut state,
Expand Down
92 changes: 0 additions & 92 deletions crates/executor/src/syscalls/eip7002.rs

This file was deleted.

91 changes: 0 additions & 91 deletions crates/executor/src/syscalls/eip7251.rs

This file was deleted.

6 changes: 0 additions & 6 deletions crates/executor/src/syscalls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
mod eip2935;
pub(crate) use eip2935::pre_block_block_hash_contract_call;

mod eip7002;
pub(crate) use eip7002::pre_block_withdrawals_request_contract_call;

mod eip7251;
pub(crate) use eip7251::pre_block_consolidation_requests_contract_call;

mod eip4788;
pub(crate) use eip4788::pre_block_beacon_root_contract_call;

Expand Down

0 comments on commit 7b24057

Please sign in to comment.