We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Field(number)
Behaves wrong when number is an integer outside the int32 range. Demonstration:
number
Welcome to Node.js v17.7.2. Type ".help" for more information. > let {Field} = require('snarkyjs'); undefined > let MAX_UINT32 = 2**31 - 1 undefined > MAX_UINT32 2147483647 > Field(MAX_UINT32).toString() '2147483647' > Field(MAX_UINT32 + 1).toString() '28948022309329048855892746252171976963363056481941560715936230020278405562369' >
I believe the error is caused by int32 coercion happening in Ocaml, when converting float to int in this line:
mina/src/lib/snarky_js_bindings/lib/snarky_js_bindings_lib.ml
Line 59 in 66da4ad
The text was updated successfully, but these errors were encountered:
closing since it's already merged into snarkyjs
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Behaves wrong when
number
is an integer outside the int32 range. Demonstration:I believe the error is caused by int32 coercion happening in Ocaml, when converting float to int in this line:
mina/src/lib/snarky_js_bindings/lib/snarky_js_bindings_lib.ml
Line 59 in 66da4ad
The text was updated successfully, but these errors were encountered: