Open spalladino opened 1 year ago
The note needs to passed through emit_encrypted_log for the oracle as well in order to be stored in its PXE.
emit_encrypted_log
https://github.com/defi-wonderland/aztec-private-oracle/blob/afe8cb4e3bc34219f925859790be56c79fb0188c/src/main.nr#L176-L183
Still, it may make sense that, if the note is emitted by the tx sender, there's no need to put it on chain. Let me chat about this one internally before you make the change!
I asked @leilawang about this, and you don't need to emit_encrypted_log if you manually call addNote on the sender's pxe!
addNote
The note needs to passed through
emit_encrypted_log
for the oracle as well in order to be stored in its PXE.https://github.com/defi-wonderland/aztec-private-oracle/blob/afe8cb4e3bc34219f925859790be56c79fb0188c/src/main.nr#L176-L183
Still, it may make sense that, if the note is emitted by the tx sender, there's no need to put it on chain. Let me chat about this one internally before you make the change!