Discussion topic for EIP-8058 https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8058.md
This proposal introduces a gas discount for contract deployments when the bytecode being deployed already exists in the state. By leveraging EIP-2930 access lists, any contract address included in the access list automatically contributes its code hash to a deduplication check. When the deployed bytecode matches an existing code hash from the access list, the deployment avoids paying
GAS_CODE_DEPOSIT * Lcosts since clients already store the bytecode and only need to link the new account to the existing code hash.This EIP becomes particularly relevant with the adoption of EIP-8037, which increases
GAS_CODE_DEPOSITfrom 200 to 1,900 gas per byte. Under EIP-8037, deploying a 24kB contract would cost approximately 46.6M gas for code deposit alone, making the deduplication discount economically significant for applications that deploy identical bytecode multiple times.
Update Log
- 2025/10/23: initial draft https://github.com/ethereum/EIPs/pull/10585