Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-wang-cb committed Oct 9, 2024
1 parent 40937cf commit fc826a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/optimism/chainspec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ pub fn optimism_deposit_tx_signature() -> Signature {
}

/// Extracts the Holcene 1599 parameters from the encoded form:
/// https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/holocene/exec-engine.md#eip1559params-encoding
/// <https://github.com/ethereum-optimism/specs/blob/main/specs/protocol/holocene/exec-engine.md#eip1559params-encoding>
pub fn decode_holocene_1559_params(nonce: B64) -> (u64, u64) {
let elasticity = nonce & ELASTICITY_MASK;
let denominator = nonce & DENOMINATOR_MASK;
return (elasticity.into(), denominator.into());
(elasticity.into(), denominator.into())
}

impl Fee for OpChainSpec {
Expand All @@ -79,7 +79,7 @@ impl Fee for OpChainSpec {
// elasticity
let (elasticity, denominator) = decode_holocene_1559_params(parent.nonce);
let base_fee_params =
BaseFeeParams::new(u64::from(denominator) as u128, u64::from(elasticity) as u128);
BaseFeeParams::new(denominator as u128, elasticity as u128);
U256::from(parent.next_block_base_fee(base_fee_params).unwrap_or_default())
} else {
U256::from(
Expand Down

0 comments on commit fc826a5

Please sign in to comment.