Skip to content

Commit

Permalink
Update EIP-7830: Move to Review
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
axic authored Jan 27, 2025
1 parent b972610 commit ecb61ef
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions EIPS/eip-7830.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Contract size limit increase for EOF
description: Raise the limit for only EOF contracts to 64 KiB
author: Alex Beregszaszi (@axic), Danno Ferrin (@shemnon)
discussions-to: https://ethereum-magicians.org/t/eip-7830-contract-size-limit-increase-for-eof/21927
status: Draft
status: Review
type: Standards Track
category: Core
created: 2024-11-29
Expand All @@ -29,8 +29,6 @@ Storage cost is already paid per contract byte.

[EIP-170](./eip-170.md) specifies `MAX_CODE_SIZE` as 24576 bytes, and [EIP-3860](./eip-3860.md) specifies `MAX_INITCODE_SIZE` as `2 * MAX_CODE_SIZE` (49152 bytes).

<!-- TODO: if profiling analysis shows we need to charge more for EOF analysis, this is where we can specify it. Either globally or for 0xef00 contracs -->

Starting `FORK_BLOCK`, for EOF initcode/code (code starting with the `0xEF 0x00` bytes) the limit is changed:`MAX_CODE_SIZE` is set to 65536 bytes (64 KiB). This means `MAX_INITCODE_SIZE` becomes 131072 bytes (128 KiB).

## Rationale
Expand Down Expand Up @@ -60,16 +58,12 @@ A simple analysis shows contract deployements for 64 KiB contracts to be between

Note that the Max 30M gas contract size of 135 KiB is outside the limits of what is proposed in this EIP and is included to show what it would take to exceed current gas limits.

<!-- https://docs.google.com/spreadsheets/d/1C2dd5sVnZNKXOpRknHhxt6MnTTN50c3b9d6ZU2rvqDQ/edit?usp=sharing -->

## Backwards Compatibility

This is a backwards compatible change. Existing contracts are unaffected, and only new deployments see the effect.

## Security Considerations

<!-- TODO -->

Given the analysis cost is paid as part of deployment, the size of contract should have no effect on the runtime.

A more thorough analysis may be needed to detemine whether the proposed limit poses any risk because of client storage architectures.
Expand Down

0 comments on commit ecb61ef

Please sign in to comment.