Skip to content

use return value only when witness are all solved#473

Merged
guipublic merged 1 commit intomasterfrom
gd/return_after
Nov 16, 2022
Merged

use return value only when witness are all solved#473
guipublic merged 1 commit intomasterfrom
gd/return_after

Conversation

@guipublic
Copy link
Contributor

Related issue(s)

When a noir program returns a value but one of the constraints is failing, noir is not be able to compute the return value. However it will try to use it to write the verifier.toml

Description

Summary of changes

We return the failing constraint error before using the return value.

Copy link
Contributor

@jfecher jfecher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@guipublic guipublic merged commit dbd0bed into master Nov 16, 2022
@guipublic guipublic deleted the gd/return_after branch November 16, 2022 08:27
TomAFrench added a commit to TomAFrench/noir that referenced this pull request Nov 16, 2022
* master:
  Fix conditional with array parameter (noir-lang#475)
  Constant evaluation of to_bits() (noir-lang#464)
  propagate error from cse (noir-lang#478)
  use return value only when witness are all solved (noir-lang#473)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants