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
Auto returning the value of an array without the need to specify it in Prover.toml before proving.
Prover.toml
The feature was introduced in #360.
main.nr
fn main(x : Field, y : pub Field) -> pub [Field; 2] { [x + y, y] }
x = "1" y = "2" return = []
Expect Verifier.toml to be auto-filled as:
Verifier.toml
y = "0x0000000000000000000000000000000000000000000000000000000000000002" return = [ "0x0000000000000000000000000000000000000000000000000000000000000003", "0x0000000000000000000000000000000000000000000000000000000000000002", ]
Instead, was prompted with the error below when proving:
The parameters in the main do not match the parameters in the Prover.toml file. Please check `return` parameter
nargo build
nargo prove p
For nargo users
nargo
The text was updated successfully, but these errors were encountered:
I changed this to enhancement as this is not supported yet with the auto-return feature:
noir/crates/nargo/src/cli/prove_cmd.rs
Line 96 in 1d1b592
The error makes sense as you did specify an empty return array.
To add some more context if you had specified return = "", you would see the error:
return = ""
Values of array returned from main must be specified in prover toml file
Sorry, something went wrong.
guipublic
Successfully merging a pull request may close this issue.
Description
Aim
Auto returning the value of an array without the need to specify it in
Prover.toml
before proving.The feature was introduced in #360.
Expected behavior
main.nr
Prover.toml
Expect Verifier.toml to be auto-filled as:
Verifier.toml
Bug
Instead, was prompted with the error below when proving:
To reproduce
nargo build
nargo prove p
Environment
For
nargo
usersThe text was updated successfully, but these errors were encountered: