-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat: impl ToBigInt and ToBigUInt #42
Conversation
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.
tests
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.
Hi @tdelabro !
I dont get why we need this, when we have the Felt methods pub fn to_bigint(&self) -> BigInt
and pub fn to_biguint(&self) -> BigUint
@pefontana we need it in order to be compatible with traits that would require the implementation of ToBigInt and ToBigUInt. |
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.
still waiting for tests
The conversion logic is already tested there:
There is no logic to be tested in the code added by this PR. |
for the current implementation yes but if we change something we'll get rekt, just copy paste the other tests idk |
It doesn't make sense to test twice the same thing for a change that may or may not occur in the feature. |
@Oppen can we merge this? |
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.
LGTM
LGTM but I'm not blocking the merge. Also I don't think I have merge rights anymore, official maintainers are now only Levy and Peter AFAIK. That said, I do see a point in the tests Lucas asked for, mostly to detect regressions. Even if the tests only assert that the two ways to convert give the same results that's some assurance for future us. I do disagree that the difference it makes here is enough to block merging tho. |
No description provided.