From b2f19086c5792fd7d0a08405ab2a6dc11ae91e3a Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Fri, 19 Jul 2024 00:47:04 +0200 Subject: [PATCH] fix(eof): deny static context in EOFCREATE --- crates/interpreter/src/instructions/contract.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/interpreter/src/instructions/contract.rs b/crates/interpreter/src/instructions/contract.rs index 7128c7a03f..149d87c73c 100644 --- a/crates/interpreter/src/instructions/contract.rs +++ b/crates/interpreter/src/instructions/contract.rs @@ -17,6 +17,7 @@ use std::boxed::Box; /// EOF Create instruction pub fn eofcreate(interpreter: &mut Interpreter, _host: &mut H) { require_eof!(interpreter); + require_non_staticcall!(interpreter); gas!(interpreter, EOF_CREATE_GAS); let initcontainer_index = unsafe { *interpreter.instruction_pointer }; pop!(interpreter, value, salt, data_offset, data_size);