-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement ASSERT_LT_FELT hint #242
Conversation
…m.go into add-constants-to-ids
pkg/hints/math_hints.go
Outdated
return err | ||
} | ||
// Hint Logic | ||
cairoPrime, _ := new(big.Int).SetString(CAIRO_PRIME_HEX, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the base of SetString
is 0? should not be 16 if converting an hex value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CAIRO_PRIME_HEX
starts with "0x", and SetString
uses the prefix to determine the base if base is 0
Depends on #240 & #233 (Contains changes from both, please wait until one of them is merged into main and switch base accordingly to merge into base branch)
Closes #182