File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
noir-projects/aztec-nr/aztec/src Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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.
3940pub unconstrained fn emit_offchain_message <T >(message : T , recipient : AztecAddress )
4041where
4142 T : Serialize ,
You can’t perform that action at this time.
0 commit comments