File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ) ]
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments