Skip to content

Commit

Permalink
Disallow being referenced by both RETURNCONTRACT and EOFCREATE
Browse files Browse the repository at this point in the history
  • Loading branch information
pdobacz committed Jun 24, 2024
1 parent 17c782c commit 5c0e2e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/eof.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ The following instructions are introduced in EOF code:
- no unreachable code sections are allowed, i.e. every code section can be reached from the 0th code section with a series of CALLF / JUMPF instructions, and section 0 is implicitly reachable.
- it is an error for a container to contain both `RETURNCONTRACT` and either of `RETURN` or `STOP`.
- it is an error for a subcontainer to never be referenced in code sections of its parent container
- it is an error for a given subcontainer to be referenced by both `RETURNCONTRACT` and `EOFCREATE`
- for terminology purposes, the following concepts are defined:
- an "initcode" container is one which does not contain `RETURN` or `STOP`
- a "runtime" container is one which does not contain `RETURNCONTRACT`
Expand Down

0 comments on commit 5c0e2e4

Please sign in to comment.