op_alloy::protocol

Function data_gas_regolith

Source
pub fn data_gas_regolith(input: &[u8]) -> Uint<256, 4>
Available on crate feature protocol only.
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