From cd33bb5064dfe32bf0d277812c30783cf3719a01 Mon Sep 17 00:00:00 2001 From: Rahul Kothari Date: Mon, 4 Mar 2024 13:03:01 +0000 Subject: [PATCH] add some migration notes --- docs/docs/misc/migration_notes.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/docs/misc/migration_notes.md b/docs/docs/misc/migration_notes.md index ff1ca742cd1b..29418ce197a6 100644 --- a/docs/docs/misc/migration_notes.md +++ b/docs/docs/misc/migration_notes.md @@ -6,15 +6,29 @@ keywords: [sandbox, cli, aztec, notes, migration, updating, upgrading] Aztec is in full-speed development. Literally every version breaks compatibility with the previous ones. This page attempts to target errors and difficulties you might encounter when upgrading, and how to resolve them. -## TBD +## 0.25.0 -### Autogenerate `compute_note_hash_and_nullifier` +### [Aztec.nr] No SafeU120 anymore! +Noir now have overflow checks by default. So we don't need SafeU120 like libraries anymore. + +You can replace it with `U128` instead + +Before: +``` +SafeU120::new(0) +``` + +Now: +``` +U128::from_integer(0) +``` +### [Aztec.nr] `compute_note_hash_and_nullifier` is now autogenerated Historically developers have been required to include a `compute_note_hash_and_nullifier` function in each of their contracts. This function is now automatically generated, and all instances of it in contract code can be safely removed. It is possible to provide a user-defined implementation, in which case auto-generation will be skipped (though there are no known use cases for this). -### Updated naming of state variable wrappers +### [Aztec.nr] Updated naming of state variable wrappers We have decided to change the naming of our state variable wrappers because the naming was not clear. The changes are as follows: