AztecProtocol / aztec-packages

Apache License 2.0
155 stars 156 forks source link

error: No matching impl found for `[Field; 8]: LensForEncryptedLog<8, _>` #7220

Closed porco-rosso-j closed 2 days ago

porco-rosso-j commented 3 days ago

duplication of this discord question

I can't have a note with length > 6, as there are only LensForEncryptedLog impl for notes with length less than 7, as far as i see oracle/logs_traits.nr in aztec-nr. This seems to be temporary given the comments in the file, but I'd like to suggest considering adding more for longer lengths.

error message:

error: No matching impl found for `[Field; 8]: LensForEncryptedLog<8, _>`
132 │ ╭               context.encrypt_and_emit_note(
133 │ │                 (*context).this_address(),
134 │ │                  slot,
135 │ │                  Self::get_note_type_id(),
    · │
138 │ │                  self,
139 │ │               );
    │ ╰───────────────' No impl for `[Field; 8]: LensForEncryptedLog<8, _>`