Skip to content
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

Merged
merged 36 commits into from
Sep 20, 2023
Merged

Implement ASSERT_LT_FELT hint #242

merged 36 commits into from
Sep 20, 2023

Conversation

fmoletta
Copy link
Contributor

@fmoletta fmoletta commented Sep 19, 2023

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

@fmoletta fmoletta changed the base branch from main to assert-le-felt September 19, 2023 14:10
@fmoletta fmoletta marked this pull request as ready for review September 19, 2023 14:27
Base automatically changed from assert-le-felt to main September 19, 2023 21:31
pkg/hints/hint_utils/hint_utils.go Outdated Show resolved Hide resolved
return err
}
// Hint Logic
cairoPrime, _ := new(big.Int).SetString(CAIRO_PRIME_HEX, 0)
Copy link
Contributor

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?

Copy link
Contributor Author

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

@fmoletta fmoletta added this pull request to the merge queue Sep 20, 2023
Merged via the queue into main with commit 0510488 Sep 20, 2023
2 checks passed
@fmoletta fmoletta deleted the assert-lt-felt branch September 20, 2023 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ASSERT_LE_FELT/ASSERT_LT_FELT Hints
4 participants