diff --git a/docs/src/appendix/cheatcodes.md b/docs/src/appendix/cheatcodes.md index db4d7893fa..67c16f6cfe 100644 --- a/docs/src/appendix/cheatcodes.md +++ b/docs/src/appendix/cheatcodes.md @@ -159,9 +159,9 @@ > ℹ️ **Info** > To use cheatcodes you need to add `snforge_std` package as a development dependency in > your [`Scarb.toml`](https://docs.swmansion.com/scarb/docs/guides/dependencies.html#development-dependencies) -> using appropriate release tag. +> using the appropriate version. > > ```toml > [dev-dependencies] -> snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.12.0" } +> snforge_std = "0.33.0" > ``` diff --git a/docs/src/appendix/scarb-toml.md b/docs/src/appendix/scarb-toml.md index d2976494f2..4f93c4f4e1 100644 --- a/docs/src/appendix/scarb-toml.md +++ b/docs/src/appendix/scarb-toml.md @@ -207,7 +207,7 @@ edition = "2023_11" starknet = "2.8.2" [dev-dependencies] -snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.30.0" } +snforge_std = "0.33.0" starknet = ">=2.8.2" openzeppelin = { git = "https://github.com/OpenZeppelin/cairo-contracts.git", branch = "cairo-2" } diff --git a/docs/src/appendix/sncast-library.md b/docs/src/appendix/sncast-library.md index 356a3eae93..7f03242982 100644 --- a/docs/src/appendix/sncast-library.md +++ b/docs/src/appendix/sncast-library.md @@ -14,8 +14,8 @@ > ℹ️ **Info** > To use the library functions you need to add `sncast_std` package as a dependency in > your [`Scarb.toml`](https://docs.swmansion.com/scarb/docs/guides/dependencies.html#adding-a-dependency) -> using appropriate release tag. +> using the appropriate version. >```toml > [dependencies] -> sncast_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.22.0" } +> sncast_std = "0.33.0" > ``` diff --git a/docs/src/appendix/snforge-library.md b/docs/src/appendix/snforge-library.md index 800631674f..e0e1500f9f 100644 --- a/docs/src/appendix/snforge-library.md +++ b/docs/src/appendix/snforge-library.md @@ -14,8 +14,8 @@ > ℹ️ **Info** > To use cheatcodes you need to add `snforge_std` package as a development dependency in > your [`Scarb.toml`](https://docs.swmansion.com/scarb/docs/guides/dependencies.html#development-dependencies) -> using appropriate release tag. +> using the appropriate version. > ```toml > [dev-dependencies] -> snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.12.0" } +> snforge_std = "0.33.0" > ``` diff --git a/docs/src/getting-started/first-steps.md b/docs/src/getting-started/first-steps.md index 36036d2a66..5ae4e93f81 100644 --- a/docs/src/getting-started/first-steps.md +++ b/docs/src/getting-started/first-steps.md @@ -54,14 +54,14 @@ Add the following line under `[dev-dependencies]` section in the `Scarb.toml` fi # ... [dev-dependencies] -snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.27.0" } +snforge_std = "0.33.0" ``` -Make sure that the version in `tag` matches `snforge`. You can check the currently installed version with +Make sure that the above version matches the installed `snforge` version. You can check the currently installed version with ```shell $ snforge --version -snforge 0.27.0 +snforge 0.33.0 ``` It is also possible to add this dependency @@ -69,10 +69,7 @@ using [`scarb add`](https://docs.swmansion.com/scarb/docs/guides/dependencies.ht command. ```shell -$ scarb add snforge_std \ - --dev \ - --git https://github.com/foundry-rs/starknet-foundry.git \ - --tag v0.27.0 +$ scarb add snforge_std@0.33.0 --dev ``` Additionally, ensure that starknet-contract target is enabled in the `Scarb.toml` file. diff --git a/docs/src/starknet/script.md b/docs/src/starknet/script.md index 90657121aa..0814c42b55 100644 --- a/docs/src/starknet/script.md +++ b/docs/src/starknet/script.md @@ -202,7 +202,7 @@ version = "0.1.0" [dependencies] starknet = ">=2.8.0" -sncast_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.30.0" } +sncast_std = "0.33.0" ``` To run the script, do: @@ -254,7 +254,7 @@ version = "0.1.0" [dependencies] starknet = ">=2.8.0" -sncast_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.30.0" } +sncast_std = "0.33.0" map = { path = "../contracts" } [lib] diff --git a/docs/src/testing/contracts.md b/docs/src/testing/contracts.md index e244ff6bf0..65d9c52d9c 100644 --- a/docs/src/testing/contracts.md +++ b/docs/src/testing/contracts.md @@ -5,10 +5,10 @@ > To use the library functions designed for testing smart contracts, > you need to add `snforge_std` package as a dependency in > your [`Scarb.toml`](https://docs.swmansion.com/scarb/docs/guides/dependencies.html#development-dependencies) -> using appropriate release tag. +> using the appropriate version. >```toml > [dev-dependencies] -> snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.12.0" } +> snforge_std = "0.33.0" > ``` Using unit testing as much as possible is a good practice, as it makes your test suites run faster. However, when diff --git a/docs/src/testing/using-cheatcodes.md b/docs/src/testing/using-cheatcodes.md index 563a646568..9d3dfff9cf 100644 --- a/docs/src/testing/using-cheatcodes.md +++ b/docs/src/testing/using-cheatcodes.md @@ -3,11 +3,11 @@ > ℹ️ **Info** > To use cheatcodes you need to add `snforge_std` package as a dependency in > your [`Scarb.toml`](https://docs.swmansion.com/scarb/docs/guides/dependencies.html#development-dependencies) -> using appropriate release tag. +> using the appropriate version. > > ```toml > [dev-dependencies] -> snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry.git", tag = "v0.9.0" } +> snforge_std = "0.33.0" > ``` When testing smart contracts, often there are parts of code that are dependent on a specific blockchain state.