Skip to content

Commit 4183219

Browse files
authored
Update EIP-7620: Disallow referencing by both RETURNCONTRACT and EOFCREATE
Merged by EIP-Bot.
1 parent ff544c1 commit 4183219

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

EIPS/eip-7620.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ We extend code section validation rules (as defined in [EIP-3670](./eip-3670.md)
103103
5. `RETURNCONTRACT` the subcontainer pointed to `deploy_container_index` must not contain a `RETURNCONTRACT` instruction
104104
6. It is an error for a container to contain both `RETURNCONTRACT` and either of `RETURN` or `STOP`
105105
7. It is an error for a subcontainer to never be referenced in its parent container
106-
8. `RJUMP`, `RJUMPI` and `RJUMPV` immediate argument value (jump destination relative offset) validation: code section is invalid in case offset points to the byte directly following either `EOFCREATE` or `RETURNCONTRACT` instruction.
106+
8. It is an error for a given subcontainer to be referenced by both `RETURNCONTRACT` and `EOFCREATE`
107+
9. `RJUMP`, `RJUMPI` and `RJUMPV` immediate argument value (jump destination relative offset) validation: code section is invalid in case offset points to the byte directly following either `EOFCREATE` or `RETURNCONTRACT` instruction.
107108

108109
### Data Section Lifecycle
109110

0 commit comments

Comments
 (0)