Skip to content

Commit

Permalink
Remove initializer attr for empty ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Feb 29, 2024
1 parent 930cb15 commit 350fe4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ contract ImportTest {
ManyNotesADeepStructTestCodeGenStruct
};

// TODO(@spalladino): Delete all empty constructors
#[aztec(private)]
#[aztec(initializer)]
fn constructor(
) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ contract Test {
example_constant: PrivateImmutable<FieldNote>,
}

// TODO(@spalladino): Delete all empty constructors
#[aztec(private)]
#[aztec(initializer)]
// docs:start:empty-constructor
fn constructor() {}
// docs:end:empty-constructor
Expand Down Expand Up @@ -228,7 +228,6 @@ contract Test {

// Forcefully emits a nullifier (for testing purposes)
#[aztec(private)]
#[aztec(noinitcheck)]
fn emit_nullifier(nullifier: Field) {
context.push_new_nullifier(nullifier, 0);
}
Expand Down

0 comments on commit 350fe4b

Please sign in to comment.