Skip to content

Commit

Permalink
Merge pull request #1648 from multiversx/snippets-version
Browse files Browse the repository at this point in the history
removed hardcoded version in snippets
  • Loading branch information
andrei-marinica authored May 27, 2024
2 parents 18b63e6 + 866428a commit a9f22d0
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ use std::{
io::Write,
};

use crate::version_history;

static SNIPPETS_SOURCE_FILE_NAME: &str = "interactor_main.rs";
static SC_CONFIG_PATH: &str = "../sc-config.toml";
static FULL_PROXY_ENTRY: &str = r#"[[proxy]]
Expand Down Expand Up @@ -58,6 +60,8 @@ pub(crate) fn create_snippets_cargo_toml(
}
};

let last_release_version = &version_history::LAST_VERSION;

writeln!(
&mut file,
r#"[package]
Expand All @@ -75,10 +79,10 @@ path = "src/{SNIPPETS_SOURCE_FILE_NAME}"
path = ".."
[dependencies.multiversx-sc-snippets]
version = "0.50.3"
version = "{last_release_version}"
[dependencies.multiversx-sc]
version = "0.50.3"
version = "{last_release_version}"
[dependencies]
clap = {{ version = "4.4.7", features = ["derive"] }}
Expand Down

0 comments on commit a9f22d0

Please sign in to comment.