From 44981a49fff6fa35667af108f79e0d2dde24c3b4 Mon Sep 17 00:00:00 2001 From: thunkar Date: Fri, 22 Mar 2024 10:50:42 +0000 Subject: [PATCH] reverted change --- .../docs_example_contract/src/main.nr | 45 +------------------ 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/noir-projects/noir-contracts/contracts/docs_example_contract/src/main.nr b/noir-projects/noir-contracts/contracts/docs_example_contract/src/main.nr index 4f0af33be71a..9893521cebf5 100644 --- a/noir-projects/noir-contracts/contracts/docs_example_contract/src/main.nr +++ b/noir-projects/noir-contracts/contracts/docs_example_contract/src/main.nr @@ -16,56 +16,13 @@ contract DocsExample { use dep::aztec::prelude::{ AztecAddress, FunctionSelector, NoteHeader, NoteGetterOptions, NoteViewerOptions, PrivateContext, Map, PublicMutable, PublicImmutable, PrivateMutable, PrivateImmutable, - PrivateSet, SharedImmutable, Storable, StorableNote + PrivateSet, SharedImmutable }; use dep::aztec::{note::note_getter_options::Comparator, context::{PublicContext, Context}}; // how to import methods from other files/folders within your workspace use crate::options::create_account_card_getter_options; use crate::types::{card_note::{CardNote, CARD_NOTE_LEN}, leader::Leader}; - struct StorageFields { - leader: Storable, - legendary_card: Storable, - profiles: Storable, - set: Storable, - private_immutable: Storable, - shared_immutable: Storable, - minters: Storable, - public_immutable: Storable, - } - - struct StorageNotes { - card_note: StorableNote, - } - - struct StorageLayout { - fields: StorageFields, - notes: StorageNotes, - } - - #[abi(event)] - struct WithdrawalProcessed { - who: AztecAddress, - amount: u64, - } - - #[abi(storage)] - global STORAGE_LAYOUT = StorageLayout { - fields: StorageFields { - leader: Storable { slot: 1, typ: "PublicMutable" }, - legendary_card: Storable { slot: 3, typ: "PrivateMutable" }, - profiles: Storable { slot: 4, typ: "Map>" }, - set: Storable { slot: 5, typ: "PrivateSet" }, - private_immutable: Storable { slot: 6, typ: "PrivateImmutable" }, - shared_immutable: Storable { slot: 7, typ: "SharedImmutable" }, - minters: Storable { slot: 8, typ: "Map" }, - public_immutable: Storable { slot: 9, typ: "PublicImmutable" } - }, - notes: StorageNotes { - card_note: StorableNote { id: 2, typ: "CardNote" } - } - }; - #[aztec(storage)] struct Storage { // Shows how to create a custom struct in PublicMutable