From c645137cffe896283e391c106791e0e129ae0a2e Mon Sep 17 00:00:00 2001 From: Ayush Shukla Date: Tue, 9 Jan 2024 12:16:11 +0100 Subject: [PATCH] fix: error message in `PublicState::read` --- yarn-project/aztec-nr/aztec/src/state_vars/public_state.nr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn-project/aztec-nr/aztec/src/state_vars/public_state.nr b/yarn-project/aztec-nr/aztec/src/state_vars/public_state.nr index b24c4a3323e0..10970a92c0dd 100644 --- a/yarn-project/aztec-nr/aztec/src/state_vars/public_state.nr +++ b/yarn-project/aztec-nr/aztec/src/state_vars/public_state.nr @@ -31,7 +31,7 @@ impl PublicState { // docs:start:public_state_struct_read pub fn read(self) -> T { - assert(self.context.private.is_none(), "Public state writes only supported in public functions"); + assert(self.context.private.is_none(), "Public state reads only supported in public functions"); storage_read(self.storage_slot, self.serialization_methods.deserialize) } // docs:end:public_state_struct_read