op_alloy_consensus::eip1559

Function decode_eip_1559_params

Source
pub fn decode_eip_1559_params(eip_1559_params: B64) -> (u32, u32)
Expand description

Extracts the Holocene 1599 parameters from the encoded form: https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/holocene/exec-engine.md#eip1559params-encoding

Returns (elasticity, denominator)