Skip to content

Commit 2c00bbe

Browse files
committed
Changed const init for: U256_ZERO, U256_ONE
1 parent 5a4574d commit 2c00bbe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

evm/src/core/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ pub const USIZE_MAX: U256 = U256([usize::MAX as u64, 0, 0, 0]);
88
/// Precalculated `u64::MAX` for `U256`
99
pub const U64_MAX: U256 = U256([u64::MAX, 0, 0, 0]);
1010
/// Precalculated `zero` value for `U256`
11-
pub const U256_ZERO: U256 = U256([0, 0, 0, 0]);
11+
pub const U256_ZERO: U256 = U256::zero();
1212
/// Precalculated `one` value for `U256`
13-
pub const U256_ONE: U256 = U256([1, 0, 0, 0]);
13+
pub const U256_ONE: U256 = U256::one();
1414
/// Precalculated `32` value for `U256`
1515
pub const U256_VALUE_32: U256 = U256([32, 0, 0, 0]);
1616
/// Precalculated `256` value for `U256`

0 commit comments

Comments
 (0)