Skip to content

Commit c297459

Browse files
authored
Update EIP-7620: Fix failed copy-paste (ethereum#9655)
1 parent 84ec1a2 commit c297459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

EIPS/eip-7620.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ We introduce two new instructions on the same block number [EIP-3540](./eip-3540
4848
1. `EOFCREATE` (`0xec`)
4949
2. `RETURNCODE` (`0xee`)
5050

51+
If the code is legacy bytecode, any of these instructions result in an *exceptional halt*. (*Note: This means no change to behaviour.*)
52+
5153
### Execution Semantics
5254

5355
- The instructions `CREATE`, `CREATE2` are made obsolete and rejected by validation in EOF contracts. They are only available in legacy contracts.
5456
- If instructions `CREATE` and `CREATE2` have EOF code as initcode (starting with `EF00` magic)
5557
- deployment fails (returns 0 on the stack)
5658
- caller's nonce is not updated and gas for initcode execution is not consumed
5759

58-
If the code is legacy bytecode, any of these instructions result in an *exceptional halt*. (*Note: This means no change to behaviour.*)
59-
6060
#### Overview of the new contract creation flow
6161

6262
In EOF EVM, new bytecode is introduced to the state by means of `InitcodeTransaction` delivering an EOF container (`initcontainer`). Such a container may include arbitrarily deeply nesting subcontainers. The `initcontainer` and its subcontainers are recursively validated according to all the validation rules applicable for the EOF version in question. Next, the 0th code section of the `initcontainer` is executed and may eventually call a `RETURNCODE` instruction, which will refer to a subcontainer to be finally deployed to an address.

0 commit comments

Comments
 (0)