Skip to content

Glamsterdam readiness: ETH transfer logs (EIP-7708) and gas repricing #291

Open

Description

@alisinabh

Glamsterdam is live on Sepolia (since 2026-10-06); the Hoodi activation was postponed and no mainnet date is set. It adds no new transaction type and no signing change, so the transaction type registry needs no update. The following changes do affect users of this library and should be handled before mainnet activation.

EIP-7708: ETH transfers emit a log

Every non-zero value transfer emits a log from 0xfffffffffffffffffffffffffffffffffffffffe with the same topics[0] as ERC-20 Transfer(address,address,uint256).

  • Ethers.get_logs/2 with an ERC-20 / ERC-777 Transfer filter and no :address will start returning native ETH transfers decoded as token transfers. Document this prominently on get_logs/2 and the event filter docs.
  • Consider a small helper (constant for the system address, or a predicate on Ethers.Event) to tell native transfer logs apart.
  • Check Ethers.CombinedEventFilter decoding against a receipt containing such a log.

EIP-2780, EIP-7976, EIP-7981, EIP-8037, EIP-8038: gas repricing

The flat 21,000 intrinsic cost goes away (zero-value transfer to an existing account: 15,000; value transfer: 21,000; creating a new account adds 183,600 state gas), the calldata floor rises to 64 gas per byte, and access-list and state costs change.

  • The library hardcodes no intrinsic gas, so eth_estimateGas-based auto-fill keeps working. Verify the default 10% gas margin is still adequate under the new rules.
  • Audit tests, guides and doc examples for hardcoded gas: 21000 or similar assumptions.

EIP-7954: contract size

Code limit rises to 64 KiB and initcode to 128 KiB. Nothing in the library enforces the old limits; confirm and close.

Testing

Run the test suite against a Glamsterdam-enabled anvil once available and add it to CI when the fork is scheduled.

Activity

  1. added
    enhancement
    on Nov 15, 2026
  2. alisinabh commented on Nov 15, 2026

    @alisinabh
    MemberAuthor

    #309 covers the EIP-7708 part (helpers to identify ETH transfer logs, plus warnings on Transfer event filters). It also audits the gas repricing (no hardcoded intrinsic gas; no test or doc assumption breaks; the 10% margin stays) and EIP-7954 (nothing enforces size limits).

    Remaining before this issue can close:

    • Run the test suite against anvil --hardfork amsterdam (anvil 1.9.0 supports it as an opt-in; not run yet).
    • Add a hardfork: [default, amsterdam] matrix entry to the canary workflow .github/workflows/latest-tools.yml, and move it to required CI once the mainnet fork is scheduled (YAML sketch in Document EIP-7708 ETH transfer logs and add helpers to identify them #309).
    • Re-check the constants (EIP-2780, 7976, 7981, 8037, 8038, 7954) once the EIPs move from Last Call to Final and mainnet activation is scheduled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions