Skip to content

Missing bytecode size warnings for EIP-3860 and in Yul/EVM asm mode #15861

Open
@cameel

Description

There are currently two limits on the bytecode size on mainnet:

  1. 24576 bytes for runtime code, introduced by EIP-170: Contract code size limit in spuriousDragon.
  2. 49152 bytes for initcode, introduced by EIP-3860: Limit and meter initcode in shanghai.

The compiler emits warnings only when the first one is exceeded and then only when compiling Solidity (i.e. not Yul or imported EVM assembly). If the warning is useful, we should emit it in both cases and in all input modes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    low effortThere is not much implementation work to be done. The task is very easy or tiny.low impactChanges are not very noticeable or potential benefits are limited.should haveWe like the idea but it’s not important enough to be a part of the roadmap.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions