You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs-developers/docs/foundational-topics/call_types.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,7 @@ It is also possible to create public functions that can _only_ be invoked by pri
132
132
133
133
A common pattern is to enqueue public calls to check some validity condition on public state, e.g. that a deadline has not expired or that some public value is set.
Note that this reveals what public function is being called on what contract, and perhaps more importantly which contract enqueued the call during private execution.
138
138
To prevent this you can enqueue a call to a public function using `self.enqueue_incognito` that behaves the same as `self.enqueue` but conceals the message sender.
@@ -146,7 +146,7 @@ An example of how a deadline can be checked using the `PublicChecks` contract fo
146
146
147
147
`privately_check_timestamp` and `privately_check_block_number` are helper functions around the call to the `PublicChecks` contract:
Copy file name to clipboardExpand all lines: docs/docs-developers/docs/resources/migration_notes.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,15 @@ Aztec is in active development. Each version may introduce breaking changes that
9
9
10
10
## TBD
11
11
12
+
### [Aztec.nr]`public_checks` helpers moved to `aztec-nr`
13
+
14
+
The `privately_check_timestamp`, `privately_check_block_number`, and related caller helpers previously in `noir-contracts/contracts/protocol/public_checks_contract/src/utils.nr` are now in `aztec-nr/aztec/src/public_checks.nr`. Consumer contracts should update their imports:
15
+
16
+
```diff
17
+
- use public_checks::utils::privately_check_timestamp;
18
+
+ use aztec::public_checks::privately_check_timestamp;
19
+
```
20
+
12
21
### [Aztec.js]`AccountManager.create` takes an options bag
13
22
14
23
`AccountManager.create` no longer takes `salt` as a positional argument. The trailing `salt?: Salt` parameter has been folded into a new `AccountManagerCreateOptions` bag alongside `immutablesHash` and `deployer`:
Copy file name to clipboardExpand all lines: noir-projects/contract-snapshots/tests/snapshots/compile_failure/public_function_selector_collision/snapshots__stderr.snap
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,10 @@ error: Public function selector collision detected between functions 'fn_selecto
14
14
2: aztec
15
15
at <repo>/noir-projects/aztec-nr/aztec/src/macros/aztec.nr:169:27
16
16
3: generate_public_dispatch
17
-
at <repo>/noir-projects/aztec-nr/aztec/src/macros/dispatch.nr:20:19
17
+
at <repo>/noir-projects/aztec-nr/aztec/src/macros/dispatch.nr:52:19
18
18
4: [T]::map
19
19
at std/vector.nr:67:33
20
20
5: generate_public_dispatch
21
-
at <repo>/noir-projects/aztec-nr/aztec/src/macros/dispatch.nr:32:13
21
+
at <repo>/noir-projects/aztec-nr/aztec/src/macros/dispatch.nr:64:13
Copy file name to clipboardExpand all lines: noir-projects/contract-snapshots/tests/snapshots/expand/avm_gadgets_test_contract/snapshots__expanded.snap
0 commit comments