From c74132f5fb03d704b739fbb20152e71c084be260 Mon Sep 17 00:00:00 2001 From: MartinquaXD Date: Sat, 20 Apr 2024 10:44:58 +0200 Subject: [PATCH] More number cleanup --- ethcontract/src/int.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)));