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

feat: Allow methods defined in a contract to be non-entry points #2687

Merged
merged 6 commits into from
Sep 14, 2023

Conversation

kevaundray
Copy link
Contributor

@kevaundray kevaundray commented Sep 13, 2023

Description

Related to #2688

Problem*

Resolves

Summary*

Documentation

  • This PR requires documentation updates when merged.

    • I will submit a noir-lang/docs PR.
    • I will request for and support Dev Rel's help in documenting this PR.

Additional Context

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@kevaundray kevaundray marked this pull request as ready for review September 14, 2023 10:52
Copy link
Member

@Maddiaa0 Maddiaa0 left a comment

Choose a reason for hiding this comment

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

lgtm

@Maddiaa0 Maddiaa0 added this pull request to the merge queue Sep 14, 2023
Merged via the queue into master with commit 2103b2f Sep 14, 2023
18 checks passed
@Maddiaa0 Maddiaa0 deleted the kw/add-non-entry-point-method branch September 14, 2023 11:52
TomAFrench added a commit that referenced this pull request Sep 15, 2023
* master:
  chore: Add deprecation message for default type in for loop (#2689)
  chore!: Change `noir-lang/noir-source-resolver` to `noir-lang/source-resolver` (#2718)
  chore: clippy fixes (#2719)
  chore: Integrate noir.js into workspace and CI release workflow (#2705)
  feat: Add initial version of noir.js (#2681)
  chore: switch `release-source-resolver.yml` to use yarn (#2704)
  chore: move stranded test to correct directory (#2701)
  chore(ci): deny wildcard dependencies (#2702)
  chore: fix `noirc_abi_wasm` publish for release-please (#2699)
  chore: introduce workspace for js packages (#2677)
  feat: Allow methods defined in a contract to be non-entry points (#2687)
  chore: revert some unwanted small changes from PR2180 (#2685)
  feat(lsp): Add nargo capabilities for test metadata (#2532)
  chore(ci): Add `cargo deny` workflow (#2682)
Comment on lines +166 to +168
let functions = function_ids
.into_iter()
.map(|id| {
Copy link
Contributor

Choose a reason for hiding this comment

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

We shouldn't collect into function_ids then call into_iter immediately afterward, the intermediate Vec is not needed.

@Savio-Sou
Copy link
Collaborator

cc @noir-lang/developerrelations @rahul-kothari not sure if this needs to be documented on aztec.nr's end.

@critesjosh
Copy link
Contributor

I'm not sure, I'll defer to @rahul-kothari

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.

5 participants