chore: upgrade aztec to v4.2.0-nightly.20260408-1#324
Conversation
The aztec-benchmark repo does not have a 4.1.0 tag, only 4.1.0-rc.4. https://claude.ai/code/session_01JWkKLzm777Be6PZHWKeTPM
…rsion Add resolutions to force @aztec/foundation@4.1.1 across all packages, fixing Fr instanceof check failures from version mismatch between @defi-wonderland/aztec-benchmark (4.1.0-rc.4) and @aztec/* (4.1.1). Also bump package version to 4.1.1 to match Aztec version. https://claude.ai/code/session_01D5wkpiw74Hw2WeMdFjm1vj
The 4.1.2 tag does not exist in defi-wonderland/aztec-benchmark, so the benchmark CI jobs would fail to start. https://claude.ai/code/session_013YRxPVLkEpwFBYYRjCHMV3
Review Summary by QodoUpgrade Aztec dependencies to v4.2.0-nightly.20260331
WalkthroughsDescription• Upgrade all Aztec dependencies from 4.2.0-aztecnr-rc.2 to 4.2.0-nightly.20260331 • Update Nargo.toml git tags across all contract packages • Update config.aztecVersion to match new Aztec version • Keep @defi-wonderland/aztec-benchmark at 4.2.0-aztecnr-rc.2 (nightly not published) Diagramflowchart LR
A["package.json"] -- "Update @aztec/* deps" --> B["4.2.0-nightly.20260331"]
C["Nargo.toml files"] -- "Update git tags" --> B
D["config.aztecVersion"] -- "Update version" --> B
E["@defi-wonderland/aztec-benchmark"] -- "Keep at rc.2" --> F["4.2.0-aztecnr-rc.2"]
File Changes1. package.json
|
Code Review by Qodo
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a9baf8313d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
package.json
Outdated
| "@aztec/accounts": "4.2.0-nightly.20260331", | ||
| "@aztec/aztec.js": "4.2.0-nightly.20260331", | ||
| "@aztec/noir-contracts.js": "4.2.0-nightly.20260331", | ||
| "@aztec/protocol-contracts": "4.2.0-nightly.20260331", | ||
| "@aztec/pxe": "4.2.0-nightly.20260331", |
There was a problem hiding this comment.
Keep benchmark and Aztec deps on a single version
Bumping the core @aztec/* packages to 4.2.0-nightly.20260331 while leaving @defi-wonderland/aztec-benchmark on 4.2.0-aztecnr-rc.2 reintroduces two Aztec dependency trees (the lockfile now contains both @aztec/foundation@4.2.0-aztecnr-rc.2 and @aztec/foundation@4.2.0-nightly.20260331). The benchmark suite mixes imports from both sides (Benchmark from @defi-wonderland/aztec-benchmark and Aztec types from @aztec/*), which causes runtime type identity mismatches (e.g., instanceof Fr) and breaks yarn bench/benchmark CI. Please align versions or add a resolutions pin so only one Aztec stack is installed.
Useful? React with 👍 / 👎.
The @defi-wonderland/aztec-benchmark package pins older @aztec/* versions, causing two @aztec/foundation trees and Fr type identity mismatches at runtime. https://claude.ai/code/session_01GLhcwraBdpK1qn5UXEoHGb
|
Persistent review updated to latest commit 00447d1 |
This comment has been minimized.
This comment has been minimized.
|
Persistent review updated to latest commit 4a439a0 |
This comment has been minimized.
This comment has been minimized.
Code Review by QodoNew Review StartedThis review has been superseded by a new analysisⓘ The new review experience is currently in Beta. Learn more |
|
Persistent review updated to latest commit ab9cd57 |
The CI setup-aztec action may not properly read config.aztecVersion for nightly versions, causing a v4.1.3 sandbox to run against v4.2.0-nightly contracts and SDK. This file provides an alternative version hint. https://claude.ai/code/session_01GLhcwraBdpK1qn5UXEoHGb
|
Persistent review updated to latest commit a1796a8 |
# Conflicts: # src/escrow_contract/src/test/utils.nr
|
Persistent review updated to latest commit 07f6f10 |
v4.1.3 ContractDeployment does not support the salt field, so tests that depend on deterministic salt-based address derivation cannot work. Reverted test files to pre-merge v4.1.3-compatible versions. https://claude.ai/code/session_01M2beEWZtD5qxSwL4rzozfc
|
Persistent review updated to latest commit 7485b87 |
In v4.1.3, the ABI path for AztecAddress changed to aztec_address::AztecAddress which the SDK's isAztecAddressStruct() doesn't recognize. This causes decodeFromAbi to return plain objects instead of AztecAddress instances. Fixed by explicitly constructing AztecAddress from the decoded inner field in event decoders. https://claude.ai/code/session_01M2beEWZtD5qxSwL4rzozfc
|
Persistent review updated to latest commit de1bd35 |
…ding" This reverts commit de1bd35.
|
Persistent review updated to latest commit 3bf734d |
|
Persistent review updated to latest commit 56eb5ae |
There was a problem hiding this comment.
2 issues found across 14 files (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="src/token_contract/Nargo.toml">
<violation number="1" location="src/token_contract/Nargo.toml:8">
P1: `token_contract` now depends on `v4.2.0-nightly` Aztec Noir packages instead of the PR’s target `v4.1.3`, creating a cross-package version mismatch.</violation>
</file>
<file name="src/nft_contract/Nargo.toml">
<violation number="1" location="src/nft_contract/Nargo.toml:8">
P1: This package is pinned to a nightly Aztec tag instead of the repo’s target `v4.1.3`, causing cross-package version drift and potential compile/runtime incompatibilities.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.
src/token_contract/Nargo.toml
Outdated
| aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/aztec" } | ||
| uint_note = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/uint-note" } | ||
| balance_set = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/balance-set" } | ||
| compressed_string = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/compressed-string" } |
There was a problem hiding this comment.
P1: token_contract now depends on v4.2.0-nightly Aztec Noir packages instead of the PR’s target v4.1.3, creating a cross-package version mismatch.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/token_contract/Nargo.toml, line 8:
<comment>`token_contract` now depends on `v4.2.0-nightly` Aztec Noir packages instead of the PR’s target `v4.1.3`, creating a cross-package version mismatch.</comment>
<file context>
@@ -5,8 +5,8 @@ compiler_version = ">=1.0.0"
-uint_note = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.1.3", directory = "noir-projects/aztec-nr/uint-note" }
-balance_set = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.1.3", directory = "noir-projects/aztec-nr/balance-set" }
-compressed_string = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.1.3", directory = "noir-projects/aztec-nr/compressed-string" }
+aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/aztec" }
+uint_note = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/uint-note" }
+balance_set = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/balance-set" }
</file context>
| aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/aztec" } | |
| uint_note = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/uint-note" } | |
| balance_set = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/balance-set" } | |
| compressed_string = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/compressed-string" } | |
| aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.1.3", directory = "noir-projects/aztec-nr/aztec" } | |
| uint_note = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.1.3", directory = "noir-projects/aztec-nr/uint-note" } | |
| balance_set = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.1.3", directory = "noir-projects/aztec-nr/balance-set" } | |
| compressed_string = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.1.3", directory = "noir-projects/aztec-nr/compressed-string" } |
src/nft_contract/Nargo.toml
Outdated
| aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/aztec" } | ||
| compressed_string = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/compressed-string" } |
There was a problem hiding this comment.
P1: This package is pinned to a nightly Aztec tag instead of the repo’s target v4.1.3, causing cross-package version drift and potential compile/runtime incompatibilities.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/nft_contract/Nargo.toml, line 8:
<comment>This package is pinned to a nightly Aztec tag instead of the repo’s target `v4.1.3`, causing cross-package version drift and potential compile/runtime incompatibilities.</comment>
<file context>
@@ -5,6 +5,6 @@ compiler_version = ">=1.0.0"
[dependencies]
-aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.1.3", directory = "noir-projects/aztec-nr/aztec" }
-compressed_string = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.1.3", directory = "noir-projects/aztec-nr/compressed-string" }
+aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/aztec" }
+compressed_string = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/compressed-string" }
generic_proxy = { path = "../generic_proxy" }
</file context>
| aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/aztec" } | |
| compressed_string = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.2.0-nightly.20260407", directory = "noir-projects/aztec-nr/compressed-string" } | |
| aztec = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.1.3", directory = "noir-projects/aztec-nr/aztec" } | |
| compressed_string = { git = "https://github.com/AztecProtocol/aztec-packages/", tag = "v4.1.3", directory = "noir-projects/aztec-nr/compressed-string" } |
This comment has been minimized.
This comment has been minimized.
Code Review by QodoNew Review StartedThis review has been superseded by a new analysisⓘ The new review experience is currently in Beta. Learn more |
|
Persistent review updated to latest commit 5ef751b |
This comment has been minimized.
This comment has been minimized.
|
Persistent review updated to latest commit 012291c |
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
|
Persistent review updated to latest commit be7ff50 |
Benchmark Comparison
Contract: escrow
Contract: logic
Contract: nft
Contract: token
Contract: vault
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Summary
Changes
package.json: Bumped all @aztec/* dependencies, config.aztecVersion, and resolutions to 4.2.0-nightly.20260408-1; added @aztec/aztec devDependencysrc/token_contract/Nargo.toml: Updated 4 aztec git dependency tagssrc/vault_contract/Nargo.toml: Updated aztec git dependency tagsrc/dripper/Nargo.toml: Updated aztec git dependency tagsrc/nft_contract/Nargo.toml: Updated 2 aztec git dependency tagssrc/escrow_contract/Nargo.toml: Updated 2 aztec git dependency tagssrc/escrow_contract/src/test/test_logic_contract/Nargo.toml: Updated aztec git dependency tagsrc/generic_proxy/Nargo.toml: Updated aztec git dependency tagsrc/token_contract/src/test/transfer_private_to_commitment.nr: Updated should_fail_with message to match new nullifier error format.aztecrc: Updated version to 4.2.0-nightly.20260408-1yarn.lock: Updated lockfile for new dependency versionsTest plan
yarn ccc)yarn test:nr)yarn test:js)