Skip to content

Commit

Permalink
fix(eof): deny static context in EOFCREATE (#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Jul 19, 2024
1 parent b995fad commit a605d05
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/interpreter/src/instructions/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use std::boxed::Box;
/// EOF Create instruction
pub fn eofcreate<H: Host + ?Sized>(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);
Expand Down

0 comments on commit a605d05

Please sign in to comment.