Skip to content

Commit

Permalink
chore: add transferFrom migration notes (#7079)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-kothari authored Jun 18, 2024
1 parent ac75f8c commit d4921a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docs/migration_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Aztec is in full-speed development. Literally every version breaks compatibility

## 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.
Expand Down

0 comments on commit d4921a0

Please sign in to comment.