Skip to content

feat(hardfork): support EIP-7907: increase initcode and contract code size limit #10624

Open
@jgresham

Description

@jgresham

Component

Forge

Describe the feature you would like

EIP: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7907.md

Some of the work could be done before it gets scheduled for inclusion (we should know in the next few weeks if it does).
While EIP 7907 is being tested, devs can use --ignore-eip-3860 which allows for builds above the current limits.

Changes required (wip):

  1. forge build --sizes should be updated to show the new max sizes (yellow/red colors and margin columns)
  2. forge test --gas-report gas metering changes for contract code size > 24KB

Relevant code (wip):

  1. pub const CONTRACT_MAX_SIZE: usize = 24576;

Additional context

Current forge build --sizes example output
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions