Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions EIPS/eip-3540.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,12 @@ For clarity, the *container* refers to the complete account code, while *code* r

For clarity, the *EOF prefix* together with a version number *n* is denoted as the *EOFn prefix*, e.g. *EOF1 prefix*.

1. If *initcode's container* has EOF1 prefix it must be valid EOF1 code.
2. If *code's container* has EOF1 prefix it must be valid EOF1 code.
If any of the following conditions is not fulfilled the *contract creation* fails
and all gas provided to the create instruction/transaction is consumed
(behavior is similar to initcode execution failure).

1. If *initcode's container* has EOF1 prefix it MUST be valid EOF1 code.
2. If *code's container* has EOF1 prefix it MUST be valid EOF1 code.

## Rationale

Expand Down