Skip to content

feat(Aztec.nr): Remove the internal keyword, in favour of an attribute #1916

Description

@LHerskind

Right now the keyword internal is used in function definitions to indicate that the function is to only be called by the contract itself. The keyword is only useful in contract noir, and is merely setting a flag in the abi which is later used to generate the function tree root.

#[aztec(public)]
open internal fn some_function() {
    // ...
}

Should become:

#[aztec(public,internal)]
open fn some_function() {
    // ...
}

While maintaining its functionality.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-aztec.nrComponent: Aztec smart contract framework

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions