@@ -7,7 +7,7 @@ pub mod events;
7
7
8
8
use functions:: {
9
9
stub_registry ,
10
- utils ::{create_note_discovery_call , find_and_transform_top_level_unconstrained_fns },
10
+ utils ::{create_message_discovery_call , find_and_transform_top_level_unconstrained_fns },
11
11
};
12
12
use notes:: {generate_note_export , NOTES };
13
13
use storage::STORAGE_LAYOUT_NAME ;
@@ -189,7 +189,7 @@ comptime fn generate_contract_library_method_compute_note_hash_and_nullifier() -
189
189
190
190
let note_hash = $compute_note_hash (note , storage_slot );
191
191
192
- // The note discovery process finds settled notes, that is, notes that were created in prior
192
+ // The message discovery process finds settled notes, that is, notes that were created in prior
193
193
// transactions and are therefore already part of the note hash tree. We therefore compute the
194
194
// nullification note hash by treating the note as a settled note with the provided nonce.
195
195
let note_hash_for_nullify = aztec::note::utils:: compute_note_hash_for_nullify (
@@ -221,8 +221,8 @@ comptime fn generate_contract_library_method_compute_note_hash_and_nullifier() -
221
221
/// tree with `nonce`.
222
222
///
223
223
/// The signature of this function notably matches the `aztec::discovery::ComputeNoteHashAndNullifier` type,
224
- /// and so it can be used to call functions from that module such as `discover_new_notes `, `do_process_log`
225
- /// and `attempt_note_discovery`.
224
+ /// and so it can be used to call functions from that module such as `discover_new_messages `,
225
+ /// `do_process_log` and `attempt_note_discovery`.
226
226
///
227
227
/// This function is automatically injected by the `#[aztec]` macro.
228
228
#[contract_library_method]
@@ -263,7 +263,7 @@ comptime fn generate_contract_library_method_compute_note_hash_and_nullifier() -
263
263
264
264
comptime fn generate_process_log () -> Quoted {
265
265
// This mandatory function processes a log emitted by the contract. This is currently used to process private logs
266
- // and perform note discovery of either private notes or partial notes.
266
+ // and perform message discovery, resulting in new private notes, partial notes and events .
267
267
// The bulk of the work of this function is done by aztec::discovery::do_process_log, so all we need to do is call
268
268
// that function.
269
269
@@ -279,9 +279,9 @@ comptime fn generate_process_log() -> Quoted {
279
279
first_nullifier_in_tx : Field ,
280
280
recipient : aztec::protocol_types::address::AztecAddress ,
281
281
) {
282
- // Because this unconstrained function is injected after the contract is processed by the macros, it'll not
283
- // be modified by the macros that alter unconstrained functions. As such, we need to manually inject the
284
- // unconstrained execution context since it will not be available otherwise.
282
+ // Because this unconstrained function is injected after the contract is processed by the macros, it'll
283
+ // not be modified by the macros that alter unconstrained functions. As such, we need to manually inject
284
+ // the unconstrained execution context since it will not be available otherwise.
285
285
let context = dep::aztec::context::unconstrained_context::UnconstrainedContext ::new ();
286
286
287
287
// TODO(#10727): allow other contracts to process logs and deliver notes
@@ -327,15 +327,15 @@ comptime fn generate_note_exports() -> Quoted {
327
327
}
328
328
329
329
comptime fn generate_sync_notes () -> Quoted {
330
- let note_discovery_call = create_note_discovery_call ();
330
+ let message_discovery_call = create_message_discovery_call ();
331
331
quote {
332
332
unconstrained fn sync_notes () {
333
333
// Because this unconstrained function is injected after the contract is processed by the macros, it'll not
334
334
// be modified by the macros that alter unconstrained functions. As such, we need to manually inject the
335
335
// unconstrained execution context since it will not be available otherwise.
336
336
let context = dep::aztec::context::unconstrained_context::UnconstrainedContext ::new ();
337
337
338
- $note_discovery_call
338
+ $message_discovery_call
339
339
}
340
340
}
341
341
}
0 commit comments