Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
toni-calvin committed Sep 27, 2023
1 parent 337f1b7 commit 8ff45d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/hints/uint256_hints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ func TestUint256SqrtOk(t *testing.T) {
NewMaybeRelocatableFelt(FeltFromUint64(17)),
NewMaybeRelocatableFelt(FeltFromUint64(7)),
},
"root": {nil},
"root": {nil, nil},
},
vm,
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/lambdaworks/lambdaworks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 8ff45d8

Please sign in to comment.