From 350fe4b5a0a54a1e80f8f955dcdb34da84209175 Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Thu, 29 Feb 2024 17:57:12 -0300 Subject: [PATCH] Remove initializer attr for empty ctor --- .../noir-contracts/contracts/import_test_contract/src/main.nr | 2 +- .../noir-contracts/contracts/test_contract/src/main.nr | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/noir-projects/noir-contracts/contracts/import_test_contract/src/main.nr b/noir-projects/noir-contracts/contracts/import_test_contract/src/main.nr index 180522176a1e..e575b117ae9c 100644 --- a/noir-projects/noir-contracts/contracts/import_test_contract/src/main.nr +++ b/noir-projects/noir-contracts/contracts/import_test_contract/src/main.nr @@ -10,8 +10,8 @@ contract ImportTest { ManyNotesADeepStructTestCodeGenStruct }; + // TODO(@spalladino): Delete all empty constructors #[aztec(private)] - #[aztec(initializer)] fn constructor( ) {} diff --git a/noir-projects/noir-contracts/contracts/test_contract/src/main.nr b/noir-projects/noir-contracts/contracts/test_contract/src/main.nr index a61b90acb722..7212e0e9ed2d 100644 --- a/noir-projects/noir-contracts/contracts/test_contract/src/main.nr +++ b/noir-projects/noir-contracts/contracts/test_contract/src/main.nr @@ -35,8 +35,8 @@ contract Test { example_constant: PrivateImmutable, } + // TODO(@spalladino): Delete all empty constructors #[aztec(private)] - #[aztec(initializer)] // docs:start:empty-constructor fn constructor() {} // docs:end:empty-constructor @@ -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); }