Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ easy_private_state = { git="https://github.com/AztecProtocol/aztec-packages/", t
Go to `main.nr` and start with this contract initialization:

```rust
contract Counter {
#include_code setup /noir-projects/noir-contracts/contracts/counter_contract/src/main.nr raw
}
```

Expand Down Expand Up @@ -159,4 +159,4 @@ Follow the private voting contract tutorial on the [next page](./private_voting_

### Optional: Learn more about concepts mentioned here

- [Functions and annotations like `#[aztec(private)]`](../../../aztec/smart_contracts/functions/inner_workings.md)
- [Functions and annotations like `#[aztec(private)]`](../../../aztec/smart_contracts/functions/inner_workings.md)
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// docs:start:setup
use dep::aztec::macros::aztec;

#[aztec]
contract Counter {
// docs:end:setup
// docs:start:imports
use aztec::prelude::{AztecAddress, Map};
use value_note::{balance_utils, value_note::ValueNote};
Expand Down