defi-wonderland / aztec-private-oracle

9 stars 1 forks source link

Answer note is not stored for the oracle #7

Open spalladino opened 1 year ago

spalladino commented 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.

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!

spalladino commented 1 year ago

I asked @leilawang about this, and you don't need to emit_encrypted_log if you manually call addNote on the sender's pxe!