Skip to content

Commit

Permalink
use include_aztec_version macro
Browse files Browse the repository at this point in the history
  • Loading branch information
critesjosh committed Sep 21, 2023
1 parent 3a08982 commit bb4b306
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 94 deletions.
13 changes: 7 additions & 6 deletions docs/docs/dev_docs/contracts/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,21 @@ Before writing the contracts, we must add the aztec.nr library. This adds smart

Open Nargo.toml that is in the `contracts/example_contract` folder, and add the dependency section as follows

<CodeBlock language="toml">{`[package]
```toml
[package]
name = "example_contract"
authors = [""]
compiler_version = "0.1"
type = "contract"

[dependencies]
# Framework import
aztec = { git="https://github.com/AztecProtocol/aztec-packages/", tag="${AztecPackagesVersion()}", directory="yarn-project/aztec-nr/aztec" }
aztec = { git="https://github.com/AztecProtocol/aztec-packages/", tag="#include_aztec_version", directory="yarn-project/aztec-nr/aztec" }

# Utility dependencies
value_note = { git="https://github.com/AztecProtocol/aztec-packages/", tag="${AztecPackagesVersion()}", directory="yarn-project/aztec-nr/value-note"}
safe_math = { git="https://github.com/AztecProtocol/aztec-packages/", tag="${AztecPackagesVersion()}", directory="yarn-project/aztec-nr/safe-math"}
`}</CodeBlock>
value_note = { git="https://github.com/AztecProtocol/aztec-packages/", tag="#include_aztec_version", directory="yarn-project/aztec-nr/value-note"}
safe_math = { git="https://github.com/AztecProtocol/aztec-packages/", tag="#include_aztec_version", directory="yarn-project/aztec-nr/safe-math"}
```

:::info
Note: currently the dependency name **_MUST_** be `aztec`. The framework expects this namespace to be available when compiling into contracts. This limitation may be removed in the future.
Expand Down
88 changes: 0 additions & 88 deletions docs/docs/dev_docs/getting_started/noir_contracts.md

This file was deleted.

0 comments on commit bb4b306

Please sign in to comment.