From c9d646c9dd0208372baf23c0958134c56f047330 Mon Sep 17 00:00:00 2001 From: lightclient <14004106+lightclient@users.noreply.github.com> Date: Thu, 5 Jan 2023 08:56:11 -0700 Subject: [PATCH] 3540: restrict number of code sections to 1024 (#6251) --- EIPS/eip-3540.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EIPS/eip-3540.md b/EIPS/eip-3540.md index a9b51afac6c92..b9a3fcfc31f49 100644 --- a/EIPS/eip-3540.md +++ b/EIPS/eip-3540.md @@ -125,7 +125,7 @@ type_section := (inputs, outputs, max_stack_height)+ | kind_type | 1 byte | 0x01 | kind marker for EIP-4750 type section header | | type_size | 2 bytes | 0x0004-0xFFFC | uint16 denoting the length of the type section content, 4 bytes per code segment | | kind_code | 1 byte | 0x02 | kind marker for code size section | -| num_code_sections | 2 bytes | 0x0001-0xFFFF | uint16 denoting the number of the code sections | +| num_code_sections | 2 bytes | 0x0001-0x0400 | uint16 denoting the number of the code sections | | code_size | 2 bytes | 0x0001-0xFFFF | uint16 denoting the length of the code section content | | kind_data | 1 byte | 0x03 | kind marker for data size section | | data_size | 2 bytes | 0x0000-0xFFFF | uint16 integer denoting the length of the data section content |