Skip to content

Commit

Permalink
Clarify mid-creation EOF as target to EXTCODE*
Browse files Browse the repository at this point in the history
Closes #126
  • Loading branch information
pdobacz committed Jun 10, 2024
1 parent edb7932 commit ac0c9cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/eof.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ Code executing within an EOF environment will behave differently than legacy cod
- `RETURNDATACOPY (0x3E)` instruction
- same behavior as legacy, but changes the exceptional halt behavior to zero-padding behavior (same behavior as `CALLDATACOPY`).

**NOTE** Like for legacy targets, the aforementioned behavior of `EXTCODECOPY`, `EXTCODEHASH` and `EXTCODESIZE` does not apply to EOF contract targets mid-creation, i.e. those report same as accounts without code.

#### Creation transactions

Creation transactions (tranactions with empty `to`), with `data` containing EOF code (starting with `EF00` magic) are interpreted as having a concatenation of EOF `initcontainer` and `calldata` in the `data` and:
Expand Down

0 comments on commit ac0c9cc

Please sign in to comment.