Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions noir-projects/aztec-nr/aztec/src/macros/functions/utils.nr
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ pub(crate) comptime fn transform_private(f: FunctionDefinition) -> Quoted {
};

// All private functions perform message discovery, since they may need to access notes. This is slightly
// inefficient and could be improved by only doing it once we actually attempt to read any. Note that the message
// discovery call syncs private events as well. We do not sync those here if there are no notes because we don't
// have an API that would access events from private functions.
// inefficient and could be improved by only doing it once we actually attempt to read any.
let message_discovery_call = if NOTES.len() > 0 {
create_message_discovery_call()
} else {
Expand Down Expand Up @@ -305,9 +303,13 @@ pub(crate) comptime fn transform_utility(f: FunctionDefinition) -> Quoted {
};

// All utility functions perform message discovery, since they may need to access private notes that would be
// found during this process or they may be used to sync private events from TypeScript
// (`sync_private_state` function gets invoked by PXE::getPrivateEvents function).
let message_discovery_call = create_message_discovery_call();
// found during this process. This is slightly inefficient and could be improved by only doing it once we actually
// attempt to read any.
let message_discovery_call = if NOTES.len() > 0 {
create_message_discovery_call()
} else {
quote {}
};

// Inject context creation, storage initialization, and message discovery call at the beginning of the function
// body.
Expand Down
1 change: 0 additions & 1 deletion noir-projects/noir-contracts/Nargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ members = [
"contracts/test/benchmarking_contract",
"contracts/test/child_contract",
"contracts/test/counter_contract",
"contracts/test/event_only_contract",
"contracts/test/import_test_contract",
"contracts/test/invalid_account_contract",
"contracts/test/no_constructor_contract",
Expand Down

This file was deleted.

This file was deleted.

41 changes: 0 additions & 41 deletions yarn-project/end-to-end/src/e2e_event_only.test.ts

This file was deleted.

Loading