Skip to content

Commit

Permalink
remove exit_substate in create functions ref: rust-ethereum/evm#168
Browse files Browse the repository at this point in the history
  • Loading branch information
zjb0807 committed Jan 21, 2024
1 parent 8d17aa8 commit a04c2e5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions modules/evm/src/runner/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,6 @@ impl<'config, 'precompiles, S: StackState<'config>, P: PrecompileSet> StackExecu
if let Some(limit) = self.config.max_initcode_size {
if init_code.len() > limit {
self.state.metadata_mut().gasometer.fail();
let _ = self.exit_substate(StackExitKind::Failed);
return emit_exit!(ExitError::CreateContractLimit.into(), Vec::new());
}
}
Expand Down Expand Up @@ -581,7 +580,6 @@ impl<'config, 'precompiles, S: StackState<'config>, P: PrecompileSet> StackExecu
if let Some(limit) = self.config.max_initcode_size {
if init_code.len() > limit {
self.state.metadata_mut().gasometer.fail();
let _ = self.exit_substate(StackExitKind::Failed);
return emit_exit!(ExitError::CreateContractLimit.into(), Vec::new());
}
}
Expand Down Expand Up @@ -640,7 +638,6 @@ impl<'config, 'precompiles, S: StackState<'config>, P: PrecompileSet> StackExecu
if let Some(limit) = self.config.max_initcode_size {
if init_code.len() > limit {
self.state.metadata_mut().gasometer.fail();
let _ = self.exit_substate(StackExitKind::Failed);
return emit_exit!(ExitError::CreateContractLimit.into(), Vec::new());
}
}
Expand Down

0 comments on commit a04c2e5

Please sign in to comment.