Skip to content

Commit

Permalink
fix(EOF): target needed for EOFCREATE created address (#1536)
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita authored Jun 17, 2024
1 parent dd98b3b commit dc6e497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/interpreter/src/instructions/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub fn eofcreate<H: Host + ?Sized>(interpreter: &mut Interpreter, _host: &mut H)

let created_address = interpreter
.contract
.caller
.target_address
.create2(salt.to_be_bytes(), keccak256(sub_container));

let gas_reduce = max(interpreter.gas.remaining() / 64, 5000);
Expand Down

0 comments on commit dc6e497

Please sign in to comment.