A cleverly designed EIP draft has emerged in the Ethereum community: using “versioned opcodes” to reprice Gas without breaking any deployed contracts.
The core mechanism has three layers:
1|Separate tracks for old and new. Newly deployed contracts must use V2 opcodes and follow the new Gas schedule specified by EIP-8037/8038; existing contracts continue using the old schedule, preserving historical on-chain behavior.
2|Remove Gas introspection. The V2 opcode set excludes query opcodes such as GAS and GASLIMIT. If bytecode contains one, deployment is immediately reverted. This effectively prevents contracts from relying on “remaining Gas” for logic decisions, clearing the way for flexible repricing in the future.
3|Calls are versioned too. A new DELEGATECALL_V2 behaves similarly to DELEGATECALL, but requires the target contract’s code_version to be ≥ 2; otherwise, the call fails immediately, preventing new contracts from mistakenly calling old-version logic.
Essentially, this proposal turns “adjusting Gas costs” from a disruptive network-wide upgrade into a routine operation that can be phased in by contract version, with backward compatibility enforced at the protocol level. Ordinary users with account number $ETH will barely notice; contract developers, however, will need to keep an eye on the rollout pace of V2 tooling.
Original draft: https://github.com/ethereum/EIPs/pull/12638
#以太坊 #EIP #Gas fee
The core mechanism has three layers:
1|Separate tracks for old and new. Newly deployed contracts must use V2 opcodes and follow the new Gas schedule specified by EIP-8037/8038; existing contracts continue using the old schedule, preserving historical on-chain behavior.
2|Remove Gas introspection. The V2 opcode set excludes query opcodes such as GAS and GASLIMIT. If bytecode contains one, deployment is immediately reverted. This effectively prevents contracts from relying on “remaining Gas” for logic decisions, clearing the way for flexible repricing in the future.
3|Calls are versioned too. A new DELEGATECALL_V2 behaves similarly to DELEGATECALL, but requires the target contract’s code_version to be ≥ 2; otherwise, the call fails immediately, preventing new contracts from mistakenly calling old-version logic.
Essentially, this proposal turns “adjusting Gas costs” from a disruptive network-wide upgrade into a routine operation that can be phased in by contract version, with backward compatibility enforced at the protocol level. Ordinary users with account number $ETH will barely notice; contract developers, however, will need to keep an eye on the rollout pace of V2 tooling.
Original draft: https://github.com/ethereum/EIPs/pull/12638
#以太坊 #EIP #Gas fee