Skip to content

Commit ca2e8c6

Browse files
committed
Make EOFCREATE and TXCREATE ASE-compatible
1 parent ac2a52a commit ca2e8c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/eof.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ The following instructions are introduced in EOF code:
238238
- caller's memory slice [`input_offset`:`input_size`] is used as calldata
239239
- execute the container and deduct gas for execution. The 63/64th rule from EIP-150 applies.
240240
- increment `sender` account's nonce
241-
- calculate `new_address` as `keccak256(0xff || sender || salt)[12:]`
241+
- calculate `new_address` as `keccak256(0xff || sender32 || salt)[12:]`, where `sender32` is the sender address left-padded to 32 bytes with zeros
242242
- behavior on `accessed_addresses` and address colission is same as `CREATE2` (rules for `CREATE2` from [EIP-684](https://eips.ethereum.org/EIPS/eip-684) and [EIP-2929](https://eips.ethereum.org/EIPS/eip-2929) apply to `EOFCREATE`)
243243
- an unsuccesful execution of initcode results in pushing `0` onto the stack
244244
- can populate returndata if execution `REVERT`ed

0 commit comments

Comments
 (0)