Skip to content

Commit

Permalink
new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-schott committed Dec 8, 2023
1 parent 9d7c753 commit 015cc05
Show file tree
Hide file tree
Showing 31 changed files with 1,023 additions and 177 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ default = [ ]
ci_skip = [ "leo-compiler/ci_skip" ]
noconfig = [ ]

[dependencies.aleo-std]
version = "0.1.18"
default-features = false

[dependencies.leo-ast]
path = "./compiler/ast"
version = "=1.10.0"
Expand Down
14 changes: 14 additions & 0 deletions errors/src/errors/utils/util_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,18 @@ create_messages!(
msg: format!("Failed to retrieve dependencies. {error}"),
help: None,
}

@formatted
missing_network_error {
args: (dependency: impl Display),
msg: format!("Dependency {dependency} is missing a network specification"),
help: Some("Add a network specification to the dependency in the `program.json` file. Example: `network: \"testnet3\"`".to_string()),
}

@formatted
missing_path_error {
args: (dependency: impl Display),
msg: format!("Local dependency {dependency} is missing a path specification"),
help: Some("Add a path in the `program.json` file to the dependency project root . Example: `path: \"../../board\"`".to_string()),
}
);
4 changes: 4 additions & 0 deletions leo/package/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ license = "GPL-3.0"
edition = "2021"
rust-version = "1.69"

[dependencies.aleo-std]
version = "0.1.18"
default-features = false

[dependencies.snarkvm]
workspace = true

Expand Down
Empty file.
Loading

0 comments on commit 015cc05

Please sign in to comment.