op_alloy_protocol::fee

Function data_gas_regolith

Source
pub fn data_gas_regolith(input: &[u8]) -> U256
Expand description

Calculate the data gas for posting the transaction on L1.

In regolith, calldata costs 16 gas per non-zero byte and 4 gas per zero byte