You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's multiple end to end tests that are either inefficient, outdated, , or simply superfluous due to behavior changing and these not keeping up. Examples include tests that assert conditions that have already been asserted in the library functions they're calling and supposedly testing.
We can use this issue to mark them as we run into them so that they can eventually be addressed.
The text was updated successfully, but these errors were encountered:
`get_notes` used to fail if no notes were found ever since
AztecProtocol/aztec-packages#4988 was merged.
The argument there was that since no constraints are applied, and note
non-existence cannot be proved, `get_notes` returning no notes is always
a mistake.
However, what that mistake means depends on the caller. Since we don't
want for the caller to have to pass an error message to `get_notes`, I
think it's better to return no notes and leave it up to the caller to
decide what to do. `BoundedVec` is a safe container: `get` will result
in errors if used with indices out of bounds.
I changed the callsites where we did `get_unchecked(0)` to `get(0)` -
this means that the errors now change from 'got 0 notes' to 'out of
bounds access'. Neither error message is great, so I didn't bother
improving this. Maybe we could have a `get` variant that received an
error message (like `Option::expect`), but we don't need to worry about
this for now.
ClosesAztecProtocol/aztec-packages#7059
(indirectly due to how we need to change certain tests to address this)
There's multiple end to end tests that are either inefficient, outdated, , or simply superfluous due to behavior changing and these not keeping up. Examples include tests that assert conditions that have already been asserted in the library functions they're calling and supposedly testing.
We can use this issue to mark them as we run into them so that they can eventually be addressed.
The text was updated successfully, but these errors were encountered: