Skip to content

Commit

Permalink
eips: add missing unit test for MIN_PROTOCOL_BASE_FEE (#1558)
Browse files Browse the repository at this point in the history
eips: add missing unit test for MIN_PROTOCOL_BASE_FEE
  • Loading branch information
tcoratger authored Oct 24, 2024
1 parent 51dfc6d commit e39fc49
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/eips/src/eip1559/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,13 @@ pub(crate) const OP_MAINNET_EIP1559_DEFAULT_ELASTICITY_MULTIPLIER: u128 = 6;
/// Base fee max change denominator for Base Sepolia as defined in the Optimism
/// [transaction costs](https://community.optimism.io/docs/developers/build/differences/#transaction-costs) doc.
pub(crate) const BASE_SEPOLIA_EIP1559_DEFAULT_ELASTICITY_MULTIPLIER: u128 = 10;

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn min_protocol_sanity() {
assert_eq!(MIN_PROTOCOL_BASE_FEE_U256.to::<u64>(), MIN_PROTOCOL_BASE_FEE);
}
}

0 comments on commit e39fc49

Please sign in to comment.