Skip to content

Commit 20a2605

Browse files
committed
fixed incorrect naming
1 parent 6b9306c commit 20a2605

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

noir-projects/aztec-nr/aztec/src/event/event_interface.nr

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,9 @@ where
158158
context.push_nullifier(event_commitment);
159159

160160
if emit_as_offchain_message {
161-
// In the case of delivery via offchain message tagging is not used and the log content is the ciphertext
162-
// itself.
163-
let log_content = ciphertext;
164-
165161
// Safety: Offchain messages are by definition unconstrained. They are emitted via the `emit_offchain_effect`
166162
// oracle which we don't use for anything besides its side effects, therefore this is safe to call.
167-
unsafe { emit_offchain_message(log_content, recipient) };
163+
unsafe { emit_offchain_message(ciphertext, recipient) };
168164
} else {
169165
// When delivering through the private log stream, tagging is used so we must prefix the ciphertext with a tag.
170166
let log_content = prefix_with_tag(ciphertext, recipient);

noir-projects/aztec-nr/aztec/src/messages/offchain_messages.nr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ pub global OFFCHAIN_MESSAGE_IDENTIFIER: Field =
3636
///
3737
/// * `message` - The message to emit.
3838
/// * `recipient` - The address of the recipient.
39+
// TODO(benesjan): Make this function constrained.
3940
pub unconstrained fn emit_offchain_message<T>(message: T, recipient: AztecAddress)
4041
where
4142
T: Serialize,

0 commit comments

Comments
 (0)