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
`get_nullifier_membership_witness` and `get_low_nullifier_membership_witness` now return `(NullifierLeafPreimage, MembershipWitness<NULLIFIER_TREE_HEIGHT>)` instead of the bundled `NullifierMembershipWitness` struct (which has been removed).
15
+
16
+
If you were using these oracle functions directly (e.g. in `schnorr_account_contract`'s `lookup_validity`), update your code to destructure the tuple:
17
+
18
+
```diff
19
+
- let witness = get_low_nullifier_membership_witness(block_header, siloed_nullifier);
20
+
- let nullifier_value = witness.leaf_preimage.nullifier;
21
+
- let index = witness.index;
22
+
- let path = witness.path;
23
+
+ let (leaf_preimage, witness) = get_low_nullifier_membership_witness(block_header, siloed_nullifier);
24
+
+ let nullifier_value = leaf_preimage.nullifier;
25
+
+ let index = witness.leaf_index;
26
+
+ let path = witness.sibling_path;
27
+
```
28
+
29
+
Note the field renames: `index` is now `leaf_index`, and `path` is now `sibling_path` (matching the protocol circuit's `MembershipWitness` type).
30
+
31
+
This has been done because this is the format expected by the functionality in protocol circuits and given that this is sensitive security-wise it made sense to reuse that functionality in Aztec.nr.
12
32
### [Aztec.js]`GasSettings.default()` renamed to `GasSettings.fallback()`
13
33
14
34
`GasSettings.default()` has been renamed to `GasSettings.fallback()` to clarify that these gas limits are not protocol defaults — the protocol has no concept of "default" gas settings. `fallback()` is a convenience for cases where gas estimation is not being used, but callers should prefer estimating gas via simulation for accurate limits.
0 commit comments