diff --git a/runtime/src/eval/system.rs b/runtime/src/eval/system.rs index 535a522c..b91b52a5 100644 --- a/runtime/src/eval/system.rs +++ b/runtime/src/eval/system.rs @@ -301,10 +301,7 @@ pub fn create(runtime: &mut Runtime, is_create2: bool, handler: &mut Err(e) => Control::Exit(e), } } - Capture::Trap(interrupt) => { - push_h256!(runtime, H256::default()); - Control::CreateInterrupt(interrupt) - } + Capture::Trap(interrupt) => Control::CreateInterrupt(interrupt), } } diff --git a/src/executor/stack/executor.rs b/src/executor/stack/executor.rs index 6550a81e..0ab19fea 100644 --- a/src/executor/stack/executor.rs +++ b/src/executor/stack/executor.rs @@ -914,8 +914,7 @@ impl<'config, 'precompiles, S: StackState<'config>, P: PrecompileSet> return_data: Vec, ) -> (ExitReason, Option, Vec) { fn check_first_byte(config: &Config, code: &[u8]) -> Result<(), ExitError> { - if config.disallow_executable_format && Some(&Opcode::EOFMAGIC.as_u8()) == code.first() - { + if config.disallow_executable_format && Some(&Opcode::EOFMAGIC.as_u8()) == code.get(0) { return Err(ExitError::InvalidCode(Opcode::EOFMAGIC)); } Ok(())