Skip to content

Commit 6f24ed5

Browse files
committed
chore: Update Noir to nightly-2026-06-01
Bumps the noir submodule to nightly-2026-06-01 (originally #23487) and bundles the two follow-up changes needed for CI to pass on this bump: - Replace deprecated BoundedVec::from_parts_unchecked with from_parts in aztec-nr (note_getter.nr, subbvec.nr). The bumped noir stdlib deprecates from_parts_unchecked, and aztec-nr's warnings check runs nargo check --deny-warnings, so the two call sites aborted the build. from_parts and from_parts_unchecked have identical signatures/bodies in the current stdlib, so this is a no-op-at-runtime migration. (originally #23689) - Regenerate the @aztec/noir-noir_js file: entry in yarn-project/yarn.lock, whose content hash went stale (294c27 -> 341fef) when the noir packages changed, breaking yarn install --immutable.
1 parent 8f34701 commit 6f24ed5

5 files changed

Lines changed: 75 additions & 23 deletions

File tree

avm-transpiler/Cargo.lock

Lines changed: 69 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

noir-projects/aztec-nr/aztec/src/note/note_getter.nr

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,7 @@ where
258258
};
259259
}
260260

261-
// We can use `from_parts_unchecked` instead of `from_parts` because we know that `confirmed_notes_bvec_storage`
262-
// contains all zeroes past `hinted_notes.len()` due to how it was initialized.
263-
BoundedVec::from_parts_unchecked(confirmed_notes_bvec_storage, hinted_notes.len())
261+
BoundedVec::from_parts(confirmed_notes_bvec_storage, hinted_notes.len())
264262
}
265263

266264
pub unconstrained fn view_note<Note>(owner: Option<AztecAddress>, storage_slot: Field) -> HintedNote<Note>

noir-projects/aztec-nr/aztec/src/utils/array/subbvec.nr

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ pub fn subbvec<T, let SrcMaxLen: u32, let DstMaxLen: u32>(
1919
bvec: BoundedVec<T, SrcMaxLen>,
2020
offset: u32,
2121
) -> BoundedVec<T, DstMaxLen> {
22-
// from_parts_unchecked does not verify that the elements past len are zeroed, but that is not an issue in our case
23-
// because we're constructing the new storage array as a subarray of the original one (which should have zeroed
24-
// storage past len), guaranteeing correctness. This is because `subarray` does not allow extending arrays past
25-
// their original length.
26-
BoundedVec::from_parts_unchecked(array::subarray(bvec.storage(), offset), bvec.len() - offset)
22+
// The new storage array is a subarray of the original one (which has zeroed storage past len), so elements past
23+
// the new len remain zeroed: `subarray` does not allow extending arrays past their original length.
24+
BoundedVec::from_parts(array::subarray(bvec.storage(), offset), bvec.len() - offset)
2725
}
2826

2927
mod test {

noir/noir-repo

Submodule noir-repo updated 907 files

yarn-project/yarn.lock

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,13 +1629,12 @@ __metadata:
16291629

16301630
"@aztec/noir-noir_js@file:../noir/packages/noir_js::locator=%40aztec%2Faztec3-packages%40workspace%3A.":
16311631
version: 1.0.0-beta.21
1632-
resolution: "@aztec/noir-noir_js@file:../noir/packages/noir_js#../noir/packages/noir_js::hash=294c27&locator=%40aztec%2Faztec3-packages%40workspace%3A."
1632+
resolution: "@aztec/noir-noir_js@file:../noir/packages/noir_js#../noir/packages/noir_js::hash=341fef&locator=%40aztec%2Faztec3-packages%40workspace%3A."
16331633
dependencies:
16341634
"@aztec/noir-acvm_js": "npm:1.0.0-beta.21"
16351635
"@aztec/noir-noirc_abi": "npm:1.0.0-beta.21"
16361636
"@aztec/noir-types": "npm:1.0.0-beta.21"
16371637
pako: "npm:^2.1.0"
1638-
checksum: 10/ef758950e67df3711103b159b5b39bbe36cf5028b636f0ecfdd528bb4a849057768a01b6b82bd3084d22df3def1ffd59f3c8ec9394e4b8a6c3a741f0ab304630
16391638
languageName: node
16401639
linkType: hard
16411640

0 commit comments

Comments
 (0)