Skip to content

Commit 1440043

Browse files
authored
Update EIP-4750: ensure visibility of non-returning functions
Merged by EIP-Bot.
1 parent c7de6af commit 1440043

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EIPS/eip-4750.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Furthermore, it aims to improve analysis opportunities by encoding the number of
3232
The type section of EOF containers must adhere to following requirements:
3333

3434
1. The section is comprised of a list of metadata where the metadata index in the type section corresponds to a code section index. Therefore, the type section size MUST be `n * 4` bytes, where `n` is the number of code sections.
35-
2. Each metadata item has 3 attributes: a uint8 `inputs`, a uint8 `outputs`, and a uint16 `max_stack_height`. *Note:* This implies that there is a limit of 255 stack for the input and in the output. This is further restricted to 127 stack items, because the upper bit of both the input and output bytes are reserved for future use. `max_stack_height` is further defined in [EIP-5450](./eip-5450.md).
35+
2. Each metadata item has 3 attributes: a uint8 `inputs`, a uint8 `outputs`, and a uint16 `max_stack_height`. *Note:* This implies that there is a limit of 255 stack for the input and in the output. This is further restricted to 127 stack items, because the upper bit of both the input and output bytes are reserved for future use (`outputs == 0x80` is already used in EOF1 to denote non-returning functions, as introduced in a separate EIP). `max_stack_height` is further defined in [EIP-5450](./eip-5450.md).
3636
3. The 0th code section MUST have 0 inputs and 0 outputs.
3737

3838
Refer to [EIP-3540](./eip-3540.md) to see the full structure of a well-formed EOF bytecode.

0 commit comments

Comments
 (0)