Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoletta committed Sep 18, 2023
1 parent f4a0cf2 commit 03142ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/hints/math_hints.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func assertLeFelt(ids IdsManager, vm *VirtualMachine, scopes *ExecutionScopes, c
// Hint Logic
cairoPrime, _ := new(big.Int).SetString(CAIRO_PRIME_HEX, 0)
halfPrime := new(big.Int).Div(cairoPrime, new(big.Int).SetUint64(2))
thirdOfPrime := new(big.Int).Div(cairoPrime, new(big.Int).SetUint64(2))
thirdOfPrime := new(big.Int).Div(cairoPrime, new(big.Int).SetUint64(3))
if a.Cmp(b) == 1 {
return errors.Errorf("Assertion failed, %v, is not less or equal to %v", a, b)
}
Expand Down

0 comments on commit 03142ac

Please sign in to comment.