Skip to content

feat: merge-train/fairies#23804

Merged
AztecBot merged 3 commits into
nextfrom
merge-train/fairies
Jun 3, 2026
Merged

feat: merge-train/fairies#23804
AztecBot merged 3 commits into
nextfrom
merge-train/fairies

Conversation

@AztecBot

@AztecBot AztecBot commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

BEGIN_COMMIT_OVERRIDE
feat(aztec-nr): Add a delivery mode to handshake notes (#23783)
fix(pxe): enforce full field consumption at oracle boundaries (#23802)
chore(ci): Static oracle version check (#23805)
END_COMMIT_OVERRIDE

Fixes
[F-694](https://linear.app/aztec-labs/issue/F-694/handshake-registry-store-a-delivery-mode-on-handshakenote)

- New `mode: u8` field on `HandshakeNote`
- For the mode I went with a simple `u8` and constant identifiers to
represent the valid modes. We could switch to a new type, this just will
require some extra serialization and type scaffolding. Happy to do that
in this PR or file a follow-up. Made
[F-706](https://linear.app/aztec-labs/issue/F-706/replace-handshakenote-mode-u8-with-a-typed-delivery-mode-shared-in)
for now as a follow-up.

---------

Co-authored-by: Nicolas Chamo <nicolas@chamo.com.ar>
nchamo and others added 2 commits June 2, 2026 18:50
No issue, fixes confusing CI errors I ran into on
#23796 when the
`aztec_sublib` oracle version was not updated
http://ci.aztec-labs.com/83a883aee887f12c:
<details><summary>Details</summary>
<p>

```
17:46:29 
17:46:29   ● e2e_blacklist_token_contract transfer public › failure cases › transfer from a blacklisted account
17:46:29 
17:46:29     TypeError: Cannot read properties of undefined (reading 'check')
17:46:29 
17:46:29       22 |
17:46:29       23 |   afterEach(async () => {
17:46:29     > 24 |     await t.tokenSim.check();
17:46:29          |                      ^
17:46:29       25 |   });
17:46:29       26 |
17:46:29       27 |   it('transfer less than balance', async () => {
17:46:29 
17:46:29       at Object.check (e2e_blacklist_token_contract/transfer_public.test.ts:24:22)
17:46:29 
17:46:29   ● e2e_blacklist_token_contract transfer public › failure cases › transfer to a blacklisted account
17:46:29 
17:46:29     Simulation error: Incompatible private environment version: The contract was compiled with an older version of Aztec.nr than your private environment supports. Recompile the contract with a compatible version of Aztec.nr. See https://docs.aztec.network/errors/8 (expected oracle major version 28, got 27)
17:46:29 
17:46:29       at ContractClassRegistry.publish
17:46:29       at MultiCallEntrypoint.entrypoint
17:46:29 
17:46:29     Cause:
17:46:29     Incompatible private environment version: The contract was compiled with an older version of Aztec.nr than your private environment supports. Recompile the contract with a compatible version of Aztec.nr. See https://docs.aztec.network/errors/8 (expected oracle major version 28, got 27)
17:46:29 
17:46:29       85 |         if (major !== ORACLE_VERSION_MAJOR) {
17:46:29       86 |             const hint = major > ORACLE_VERSION_MAJOR ? 'The contract was compiled with a newer version of Aztec.nr than your private environment supports. Upgrade your private environment to a compatible version.' : 'The contract was compiled with an older version of Aztec.nr than your private environment supports. Recompile the contract with a compatible version of Aztec.nr.';
17:46:29     > 87 |             throw new Error(`Incompatible private environment version: ${hint} See https://docs.aztec.network/errors/8 (expected oracle major version ${ORACLE_VERSION_MAJOR}, got ${major})`);
17:46:29          |                   ^
17:46:29       88 |         }
17:46:29       89 |         this.contractOracleVersion = {
17:46:29       90 |             major,
17:46:29 
17:46:29       at PrivateExecutionOracle.assertCompatibleOracleVersion (../../pxe/dest/contract_function_simulator/oracle/utility_execution_oracle.js:87:19)
```

</p>
</details> 

We are told there is an oracle mismatch, but there is nothing to
indicate it is in the aztec-nr sublib as I had already updated the
actual aztec-nr version constant. The error also only comes about at
runtime in an e2e test. We should be able to error out in the
pre-existing `check_oracle_version` scripts for pxe/txe.

@ludamad ludamad left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Auto-approved

@AztecBot AztecBot added this pull request to the merge queue Jun 3, 2026
@AztecBot

AztecBot commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator Author

🤖 Auto-merge enabled after 4 hours of inactivity. This PR will be merged automatically once all checks pass.

Merged via the queue into next with commit ff8944f Jun 3, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants