Skip to content

Commit 2f35cb6

Browse files
fmt
1 parent 81ee184 commit 2f35cb6

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

crates/context/src/cfg.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ pub struct CfgEnv<SPEC = SpecId> {
7979
#[cfg(feature = "optional_block_gas_limit")]
8080
pub disable_block_gas_limit: bool,
8181
/// EIP-3541 rejects the creation of contracts that starts with 0xEF
82-
///
82+
///
8383
/// This is useful for chains that do not implement EIP-3541.
84-
///
84+
///
8585
/// By default, it is set to `false`.
8686
#[cfg(feature = "optional_eip3541")]
8787
pub disable_eip3541: bool,
@@ -199,7 +199,7 @@ impl<SPEC> CfgEnv<SPEC> {
199199
#[cfg(feature = "optional_block_gas_limit")]
200200
disable_block_gas_limit: self.disable_block_gas_limit,
201201
#[cfg(feature = "optional_eip3541")]
202-
disable_eip3541: self.disable_eip3541,
202+
disable_eip3541: self.disable_eip3541,
203203
#[cfg(feature = "optional_eip3607")]
204204
disable_eip3607: self.disable_eip3607,
205205
#[cfg(feature = "optional_no_base_fee")]

crates/handler/src/frame.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,10 @@ pub fn return_create<JOURNAL: JournalTr>(
686686
// If ok, check contract creation limit and calculate gas deduction on output len.
687687
//
688688
// EIP-3541: Reject new contract code starting with the 0xEF byte
689-
if !is_eip3541_disabled && spec_id.is_enabled_in(LONDON) && interpreter_result.output.first() == Some(&0xEF) {
689+
if !is_eip3541_disabled
690+
&& spec_id.is_enabled_in(LONDON)
691+
&& interpreter_result.output.first() == Some(&0xEF)
692+
{
690693
journal.checkpoint_revert(checkpoint);
691694
interpreter_result.result = InstructionResult::CreateContractStartingWithEF;
692695
return;

0 commit comments

Comments
 (0)