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

update API: is_xxx to check_xxx when self is mutated #57

Conversation

zhenfeizhang
Copy link
Contributor

@zhenfeizhang zhenfeizhang commented Apr 12, 2022

Description

closes: #56


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (main)
  • Linked to GitHub issue with discussion and accepted design OR have an explanation in the PR that describes this work.
  • Wrote unit tests
  • Updated relevant documentation in the code
  • Added a relevant changelog entry to the Pending section in CHANGELOG.md
  • Re-reviewed Files changed in the GitHub PR explorer

@zhenfeizhang zhenfeizhang linked an issue Apr 12, 2022 that may be closed by this pull request
@zhenfeizhang zhenfeizhang marked this pull request as ready for review April 12, 2022 20:53
@zhenfeizhang zhenfeizhang self-assigned this Apr 12, 2022
@@ -964,7 +964,7 @@ pub(crate) mod test {
fn build_is_zero_circuit<F: PrimeField>(a: F) -> Result<PlonkCircuit<F>, PlonkError> {
Copy link
Contributor

Choose a reason for hiding this comment

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

we should change these test fn names as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice catch. Fixed.

plonk/src/circuit/customized/mod.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@alxiong alxiong left a comment

Choose a reason for hiding this comment

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

LGTM

@zhenfeizhang zhenfeizhang merged commit e487c12 into main Apr 14, 2022
@zhenfeizhang zhenfeizhang deleted the 56-change-all-current-is_xxx-to-check_xxx-and-those-that-enforce-and-will-return-error-if-not-sat-we-keep-using-xxx_gate branch April 14, 2022 16:43
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.

internal API update: clippy warning on gadget naming
2 participants