Skip to content

fix: Check for public args in aztec functions#6355

Merged
PhilWindle merged 8 commits into
masterfrom
pw/prevent-pub-args
May 14, 2024
Merged

fix: Check for public args in aztec functions#6355
PhilWindle merged 8 commits into
masterfrom
pw/prevent-pub-args

Conversation

@PhilWindle

@PhilWindle PhilWindle commented May 12, 2024

Copy link
Copy Markdown
Collaborator

This PR modifies the aztec macros to error if arguments with public visibility are specified on private or public functions. Closes #6285

@PhilWindle PhilWindle requested review from Thunkar and sirasistant May 12, 2024 20:47

@sirasistant sirasistant left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Just a minor nit

Comment thread noir/noir-repo/aztec_macros/src/transforms/functions.rs Outdated
Co-authored-by: Álvaro Rodríguez <sirasistant@gmail.com>
@PhilWindle PhilWindle enabled auto-merge (squash) May 13, 2024 10:00
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.

[Proving Phase 2]: Prevent contract compilation if specifying pub arguments to a private or public function

2 participants