From 97d997c851fe319f864e2826903ffa7d8677d701 Mon Sep 17 00:00:00 2001 From: Lasse Herskind <16536249+LHerskind@users.noreply.github.com> Date: Mon, 1 Jul 2024 17:47:59 +0100 Subject: [PATCH] chore: remove 4738 ref (#7254) Gets rid of references to #4738 as it is dropped. --- .../aztec-nr/aztec/src/state_vars/public_immutable.nr | 5 ----- .../aztec-nr/aztec/src/state_vars/shared_immutable.nr | 5 ----- 2 files changed, 10 deletions(-) diff --git a/noir-projects/aztec-nr/aztec/src/state_vars/public_immutable.nr b/noir-projects/aztec-nr/aztec/src/state_vars/public_immutable.nr index a8322463054..1206916cf79 100644 --- a/noir-projects/aztec-nr/aztec/src/state_vars/public_immutable.nr +++ b/noir-projects/aztec-nr/aztec/src/state_vars/public_immutable.nr @@ -30,11 +30,6 @@ impl PublicImmutable { impl PublicImmutable { // docs:start:public_immutable_struct_write pub fn initialize(self, value: T) where T: Serialize { - // TODO(#4738): Uncomment the following assert - // assert( - // self.context.public.unwrap_unchecked().is_deployment(), "PublicImmutable can only be initialized during contract deployment" - // ); - // We check that the struct is not yet initialized by checking if the initialization slot is 0 let initialization_slot = INITIALIZATION_SLOT_SEPARATOR + self.storage_slot; let init_field: Field = self.context.storage_read(initialization_slot); diff --git a/noir-projects/aztec-nr/aztec/src/state_vars/shared_immutable.nr b/noir-projects/aztec-nr/aztec/src/state_vars/shared_immutable.nr index a29f5e9c737..c366a38cfd1 100644 --- a/noir-projects/aztec-nr/aztec/src/state_vars/shared_immutable.nr +++ b/noir-projects/aztec-nr/aztec/src/state_vars/shared_immutable.nr @@ -26,11 +26,6 @@ impl SharedImmutable { impl SharedImmutable { // Intended to be only called once. pub fn initialize(self, value: T) where T: Serialize { - // TODO(#4738): Uncomment the following assert - // assert( - // self.context.public.unwrap_unchecked().is_deployment(), "SharedImmutable can only be initialized during contract deployment" - // ); - // We check that the struct is not yet initialized by checking if the initialization slot is 0 let initialization_slot = INITIALIZATION_SLOT_SEPARATOR + self.storage_slot; let init_field: Field = self.context.storage_read(initialization_slot);