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
This would make the syntax for getting dummy notes tidier and uniform across apps and across custom note implementations.
I believe there's a PR in Noir to introduce this type.
The text was updated successfully, but these errors were encountered:
# Description
closes: #1020
Introduce `Option<T>` type to Noir.
Update `get_notes` logic:
- Remove the `is_real` member of some notes. `Option::is_some()` can now
be used instead.
- Remove the `is_dummy` method of the `NoteInterface`.
- When calling the `get_notes` oracle, a boolean `is_some` is injected
after the `nonce` to convey whether the note is a dummy or not.
- Change contract logic to `unwrap` `Option<Note>` types.
It's slightly more verbose in places, but it makes the notion of a dummy
note more enshrined (and actually aligns more closely to our inital
sketches of what utxo syntax might look like).
Thanks to Jake for the Option implementation!
This would make the syntax for getting dummy notes tidier and uniform across apps and across custom note implementations.
I believe there's a PR in Noir to introduce this type.
The text was updated successfully, but these errors were encountered: