diff --git a/ethcontract/src/int.rs b/ethcontract/src/int.rs index 02f9d844..ed07c06e 100644 --- a/ethcontract/src/int.rs +++ b/ethcontract/src/int.rs @@ -1326,8 +1326,8 @@ mod tests { assert_eq!(I256::from(42 as $unsigned).to_string(), "42"); assert_eq!( - I256::from(<$unsigned>::max_value()).to_string(), - <$unsigned>::max_value().to_string(), + I256::from(<$unsigned>::MIN).to_string(), + <$unsigned>::MAX.to_string(), ); assert!(matches!(<$signed>::try_from(small_positive), Ok(42)));