diff --git a/noir-projects/aztec-nr/aztec/src/public_storage.nr b/noir-projects/aztec-nr/aztec/src/public_storage.nr index 59bc25b51970..b9a34811babc 100644 --- a/noir-projects/aztec-nr/aztec/src/public_storage.nr +++ b/noir-projects/aztec-nr/aztec/src/public_storage.nr @@ -9,22 +9,6 @@ pub fn write(storage_slot: Field, value: T) where T: Serialize { storage_write(storage_slot, value.serialize()); } -// Ideally we'd do the following, but we cannot because of https://github.com/noir-lang/noir/issues/4633 -// pub fn read_historical( -// storage_slot: Field, -// context: PrivateContext -// ) -> T where T: Deserialize { -// let mut fields = [0; N]; -// for i in 0..N { -// fields[i] = public_storage_historical_read( -// context, -// storage_slot + i as Field, -// context.this_address() -// ); -// } -// T::deserialize(fields) -// } - mod tests { use std::test::OracleMock; use dep::protocol_types::traits::{Deserialize, Serialize};