From 14917d3d8c5da1f6038597d9129c6051a2fd94de Mon Sep 17 00:00:00 2001 From: Rahul Kothari Date: Thu, 20 Jun 2024 15:23:00 +0100 Subject: [PATCH] chore: fix migration notes (#7133) Moves a breaking change into the next release as opposed to the former release This happens every so often when a PR was started in the previous release but PR gets merged after the sandbox release happens --- docs/docs/migration_notes.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/docs/migration_notes.md b/docs/docs/migration_notes.md index 35a9d71ba0c..6fed5c9c3b5 100644 --- a/docs/docs/migration_notes.md +++ b/docs/docs/migration_notes.md @@ -61,13 +61,6 @@ These changes were done because having the note hash exposed allowed us to not h + } ``` - -## 0.43.0 - -### [Aztec.nr] break `token.transfer()` into `transfer` and `transferFrom` -Earlier we had just one function - `transfer()` which used authwits to handle the case where a contract/user wants to transfer funds on behalf of another user. -To reduce circuit sizes and proof times, we are breaking up `transfer` and introducing a dedicated `transferFrom()` function like in the ERC20 standard. - ### [Aztec.nr] `note_getter` returns `BoundedVec` The `get_notes` and `view_notes` function no longer return an array of options (i.e. `[Option, N_NOTES]`) but instead a `BoundedVec`. This better conveys the useful property the old array had of having all notes collapsed at the beginning of the array, which allows for powerful optimizations and gate count reduction when setting the `options.limit` value. @@ -96,6 +89,12 @@ To further reduce gate count, you can iterate over `options.limit` instead of `m + for i in 0..options.limit { ``` +## 0.43.0 + +### [Aztec.nr] break `token.transfer()` into `transfer` and `transferFrom` +Earlier we had just one function - `transfer()` which used authwits to handle the case where a contract/user wants to transfer funds on behalf of another user. +To reduce circuit sizes and proof times, we are breaking up `transfer` and introducing a dedicated `transferFrom()` function like in the ERC20 standard. + ### [Aztec.nr] `options.limit` has to be constant The `limit` parameter in `NoteGetterOptions` and `NoteViewerOptions` is now required to be a compile-time constant. This allows performing loops over this value, which leads to reduced circuit gate counts when setting a `limit` value.