From 1d83ac652713bb5f1cd49f81fe40a256c3bbd431 Mon Sep 17 00:00:00 2001 From: Evgeniy Leko Date: Sat, 28 Oct 2023 10:56:04 +0200 Subject: [PATCH] [value_ref] fix uint256 comparison --- src/types/value_ref.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/value_ref.rs b/src/types/value_ref.rs index e52934e..a82fce3 100644 --- a/src/types/value_ref.rs +++ b/src/types/value_ref.rs @@ -89,7 +89,7 @@ impl<'a> PartialEq for ValueRef<'a> { (ValueRef::UInt32(a), ValueRef::UInt32(b)) => *a == *b, (ValueRef::UInt64(a), ValueRef::UInt64(b)) => *a == *b, (ValueRef::UInt128(a), ValueRef::UInt128(b)) => *a == *b, - (ValueRef::UInt256(a), ValueRef::UInt256(b)) => *a == *b, + (ValueRef::UInt256(a), ValueRef::UInt256(b)) => a.into_words() == b.into_words(), (ValueRef::Int8(a), ValueRef::Int8(b)) => *a == *b, (ValueRef::Int16(a), ValueRef::Int16(b)) => *a == *b, (ValueRef::Int32(a), ValueRef::Int32(b)) => *a == *b,