From 848eaacedd8fdc06175071fb37f48508ba1a9b11 Mon Sep 17 00:00:00 2001 From: Patrice Tisserand Date: Mon, 29 Jul 2024 22:32:35 +0200 Subject: [PATCH] contracts: use `[workspace.dependencies]` for `snforge_std` to remove duplicated version in each packages. --- contracts/Scarb.toml | 3 +++ contracts/ark_common/Scarb.toml | 2 +- contracts/ark_orderbook/Scarb.toml | 2 +- contracts/ark_starknet/Scarb.toml | 2 +- contracts/ark_tokens/Scarb.toml | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/contracts/Scarb.toml b/contracts/Scarb.toml index 132ebcb44..ef3a145b8 100644 --- a/contracts/Scarb.toml +++ b/contracts/Scarb.toml @@ -1,3 +1,6 @@ [workspace] members = ["ark_common", "ark_orderbook", "ark_starknet", "ark_tokens", "solis"] + +[workspace.dependencies] +snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.18.0" } diff --git a/contracts/ark_common/Scarb.toml b/contracts/ark_common/Scarb.toml index 37b19bb7c..3f3334b18 100644 --- a/contracts/ark_common/Scarb.toml +++ b/contracts/ark_common/Scarb.toml @@ -8,7 +8,7 @@ version = "0.1.0" starknet = "2.5.4" [dev-dependencies] -snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.18.0" } +snforge_std.workspace = true [lib] diff --git a/contracts/ark_orderbook/Scarb.toml b/contracts/ark_orderbook/Scarb.toml index 925ee92f3..806b190ee 100644 --- a/contracts/ark_orderbook/Scarb.toml +++ b/contracts/ark_orderbook/Scarb.toml @@ -7,7 +7,7 @@ ark_common = { path = "../ark_common" } starknet = "2.5.4" [dev-dependencies] -snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.18.0" } +snforge_std.workspace = true [[target.starknet-contract]] sierra = true diff --git a/contracts/ark_starknet/Scarb.toml b/contracts/ark_starknet/Scarb.toml index 5459d67c2..969fd0ca0 100644 --- a/contracts/ark_starknet/Scarb.toml +++ b/contracts/ark_starknet/Scarb.toml @@ -10,7 +10,7 @@ ark_tokens = { path = "../ark_tokens" } ark_oz = { path = "../ark_oz" } [dev-dependencies] -snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.18.0" } +snforge_std.workspace = true [[target.starknet-contract]] sierra = true diff --git a/contracts/ark_tokens/Scarb.toml b/contracts/ark_tokens/Scarb.toml index 80f67ab1a..b8f2b5d48 100644 --- a/contracts/ark_tokens/Scarb.toml +++ b/contracts/ark_tokens/Scarb.toml @@ -9,7 +9,7 @@ openzeppelin = { git = "https://github.com/OpenZeppelin/cairo-contracts.git", ta ark_oz = { path = "../ark_oz" } [dev-dependencies] -snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.18.0" } +snforge_std.workspace = true [lib]