reth_revm::interpreter::gas

Function initcode_cost

pub const fn initcode_cost(len: u64) -> u64
Expand description

EIP-3860: Limit and meter initcode

Apply extra gas cost of 2 for every 32-byte chunk of initcode.

This cannot overflow as the initcode length is assumed to be checked.