From e3d191a0830d0fc1b8d5e13e84b88fd4e040e3b7 Mon Sep 17 00:00:00 2001 From: Rahul Kothari Date: Tue, 21 May 2024 09:11:01 +0000 Subject: [PATCH] fix migration notes --- docs/docs/migration_notes.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/docs/migration_notes.md b/docs/docs/migration_notes.md index ee69840c376..2bdfb23618c 100644 --- a/docs/docs/migration_notes.md +++ b/docs/docs/migration_notes.md @@ -6,7 +6,7 @@ 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. -## 0.X.X +## 0.41.0 ### [Aztec.nr] View functions and interface navigation @@ -23,15 +23,15 @@ It is now possible to explicitly state a function doesn't perform any state alte View functions only generate a `StaticCallInterface` that doesn't include `.call` or `.enqueue` methods. Also, the denomination `static` has been completely removed from the interfaces, in favor of the more familiar `view` ```diff -+ let price = PriceFeed::at(asset.oracle).get_price(0).view(&mut context).price; - let price = PriceFeed::at(asset.oracle).get_price(0).static_call(&mut context).price; ++ let price = PriceFeed::at(asset.oracle).get_price(0).view(&mut context).price; ``` ```diff #[aztec(private)] fn enqueue_public_get_value_from_child(target_contract: AztecAddress, value: Field) { -+ StaticChild::at(target_contract).pub_get_value(value).enqueue_view(&mut context); - StaticChild::at(target_contract).pub_get_value(value).static_enqueue(&mut context); ++ StaticChild::at(target_contract).pub_get_value(value).enqueue_view(&mut context); } ``` @@ -42,8 +42,6 @@ Additionally, the Noir LSP will now honor "go to definitions" requests for contr * `.simulate()` now tracks closer the process performed by `.send().wait()`, specifically going through the account contract entrypoint instead of directly calling the intended function. * `wallet.viewTx(...)` has been renamed to `wallet.simulateUnconstrained(...)` to better clarify what it does. -## 0.41.0 - ### [Aztec.nr] Keys: Token note now stores an owner master nullifying public key hash instead of an owner address i.e.