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

Proof_verified: of_int should raise Invalid_argument not a Failure. #14206

Closed
dannywillems opened this issue Sep 25, 2023 · 1 comment · Fixed by #14216
Closed

Proof_verified: of_int should raise Invalid_argument not a Failure. #14206

dannywillems opened this issue Sep 25, 2023 · 1 comment · Fixed by #14216
Assignees

Comments

@dannywillems
Copy link
Member

          ```suggestion

(** [of_int n] converts the runtime natural [n] to the data type natural.
@raise Failure if the value [n] is above or equal to 3 *)

Should be `Invalid_argument` too.

_Originally posted by @rbonichon in https://github.com/MinaProtocol/mina/pull/13386#discussion_r1336273566_
            
@dannywillems
Copy link
Member Author

It should also be renamed in of_int_exn to follow conventions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants