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

Auto-generated Verifier.toml produces unreadable toml for bool parameters #890

Closed
jfecher opened this issue Feb 21, 2023 · 0 comments · Fixed by #894
Closed

Auto-generated Verifier.toml produces unreadable toml for bool parameters #890

jfecher opened this issue Feb 21, 2023 · 0 comments · Fixed by #894
Labels
bug Something isn't working

Comments

@jfecher
Copy link
Contributor

jfecher commented Feb 21, 2023

Description

Aim

Run cargo prove p on a main.nr and Prover.toml pair:

fn main(pub x: bool) {
    constrain x;
}
x = true

Expected behavior

The auto-generated Verifier.toml should read x = true.

Bug

The Verifier.toml that is actually generated is

x = "0x0000000000000000000000000000000000000000000000000000000000000001"

Which fails proving with the error message

cannot parse a string toml type into Boolean
exit 1
@jfecher jfecher added the bug Something isn't working label Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant