Ethereum Protocol Fellowship (EPF) Cohort 7 — Applications open until May 13
All EIPs
EIP-8058 Draft EL

Contract Bytecode Deduplication Discount

Authors: , ,

Canonical data: /latest/eips/8058.json

Reduces gas costs for deploying duplicate contract bytecode via access-list based mechanism

Timeline

Glamsterdam
Carlos Perez
Declined
Jan 5, 2026 · ACDE #227
Proposed
EIP Created Oct 22, 2025

Key Benefits

  • Aligns gas costs with actual storage usage for duplicate deployments.
  • Deterministic and consensus-safe: depends on access lists and current state, not local databases.
  • No new transaction format or reverse indexes; reuses EIP-2930 infrastructure.
  • Can yield major savings when GAS_CODE_DEPOSIT is high (e.g., under EIP-8037).
  • Encourages bytecode reuse and efficient factory/clone patterns.

Trade-offs & Considerations

No trade-offs documented yet.

Stakeholder Impact

End Users

Cheaper deployments for apps that spin up many identical contracts (e.g., factory wallets or clones); no change to how transactions are sent.

Application Developers

Can cut deployment costs for factory/clone patterns by adding a reference contract address to the access list; update builders and deploy scripts to include access lists and handle cases without a discount.

Wallet Developers

Update gas estimation and access-list generation to surface potential deduplication discounts and clearly indicate when the discount will or won't apply.

Tooling / Infrastructure

Estimators, simulators, and tracers should build the CodeHash Access-Set from the access list at tx start and report when deduplication triggers; consider dual estimates (with/without discount).

Layer 2s

Rollups mirroring L1 gas semantics may adopt this to lower duplicate deployment costs; coordinate with any increased GAS_CODE_DEPOSIT (e.g., per EIP-8037) and access-list handling in sequencers.

Stakers & Node Operators

Minimal runtime overhead; implement building the CodeHash Access-Set and conditional charging; no trie/schema changes. Same-block ordering effects are deterministic.

CL Client Developers

No consensus changes on the CL—standard fork coordination only.

EL Client Developers

Implement access-list–based set W, hash check on successful CREATE/CREATE2, and conditional code-deposit charging per EIP-2930/2929. Also, consider implementing a code -> address reverse index to avoid complexity to users on finding the required address.