diff --git a/pkg/hints/uint256_hints_test.go b/pkg/hints/uint256_hints_test.go index 1706ebb3..2438042d 100644 --- a/pkg/hints/uint256_hints_test.go +++ b/pkg/hints/uint256_hints_test.go @@ -323,7 +323,7 @@ func TestUint256SqrtOk(t *testing.T) { NewMaybeRelocatableFelt(FeltFromUint64(17)), NewMaybeRelocatableFelt(FeltFromUint64(7)), }, - "root": {nil}, + "root": {nil, nil}, }, vm, ) diff --git a/pkg/lambdaworks/lambdaworks.go b/pkg/lambdaworks/lambdaworks.go index ca1868c5..b8ad8ecd 100644 --- a/pkg/lambdaworks/lambdaworks.go +++ b/pkg/lambdaworks/lambdaworks.go @@ -397,5 +397,5 @@ func ToUint256(a *big.Int) Uint256 { } func (u *Uint256) IsEqual(other Uint256) bool { - return u.Low == other.High && u.High == other.High + return u.Low.Cmp(other.Low) == 0 && u.High.Cmp(other.High) == 0 }