Skip to content

Commit

Permalink
chore: fix migration notes (AztecProtocol#6551)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-kothari authored May 21, 2024
1 parent 2870acd commit 89bc350
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/docs/migration_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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);
}
```

Expand All @@ -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.
Expand Down

0 comments on commit 89bc350

Please sign in to comment.