max_value -> MAX

This commit is contained in:
realbigsean
2024-06-13 17:42:48 -04:00
parent 5789db042d
commit 5f986f50f9
27 changed files with 82 additions and 87 deletions

View File

@@ -685,7 +685,7 @@ mod test {
fn get_eth1_data(i: u64) -> Eth1Data {
Eth1Data {
block_hash: Hash256::from_low_u64_be(i),
deposit_root: Hash256::from_low_u64_be(u64::max_value() - i),
deposit_root: Hash256::from_low_u64_be(u64::MAX - i),
deposit_count: i,
}
}

View File

@@ -2068,7 +2068,7 @@ pub fn timestamp_now() -> Duration {
}
fn u64_to_i64(n: impl Into<u64>) -> i64 {
i64::try_from(n.into()).unwrap_or(i64::max_value())
i64::try_from(n.into()).unwrap_or(i64::MAX)
}
/// Returns the delay between the start of `block.slot` and `seen_timestamp`.