From 56ceb88750b2fd02af3839826b1c2278432ed805 Mon Sep 17 00:00:00 2001 From: Mihai Calin Luca Date: Tue, 4 Jun 2024 02:22:12 +0200 Subject: [PATCH] renamed interact-rs folder into interactor --- .../feature-tests/rust-snippets-generator-test/src/lib.rs | 2 +- .../src/contract/generate_snippets/snippet_crate_gen.rs | 4 ++-- framework/meta-lib/src/contract/meta_config.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/feature-tests/rust-snippets-generator-test/src/lib.rs b/contracts/feature-tests/rust-snippets-generator-test/src/lib.rs index bc52826ecd..0ea3aaea2b 100644 --- a/contracts/feature-tests/rust-snippets-generator-test/src/lib.rs +++ b/contracts/feature-tests/rust-snippets-generator-test/src/lib.rs @@ -11,7 +11,7 @@ multiversx_sc::derive_imports!(); // cargo run snippets // Add --overwrite if you want to overwrite existing snippets -// Additionally, we also have to update the interact-rs snippets manually to add relative paths: +// Additionally, we also have to update the interactor snippets manually to add relative paths: // [dependencies.multiversx-sc-snippets] // version = "0.50.3" // path = "../../../../framework/snippets" diff --git a/framework/meta-lib/src/contract/generate_snippets/snippet_crate_gen.rs b/framework/meta-lib/src/contract/generate_snippets/snippet_crate_gen.rs index fc02e3f648..0b9d9485e1 100644 --- a/framework/meta-lib/src/contract/generate_snippets/snippet_crate_gen.rs +++ b/framework/meta-lib/src/contract/generate_snippets/snippet_crate_gen.rs @@ -9,9 +9,9 @@ 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]] -path = "interact-rs/src/proxy.rs" +path = "interactor/src/proxy.rs" "#; -static PROXY_PATH: &str = "interact-rs/src/proxy.rs"; +static PROXY_PATH: &str = "interactor/src/proxy.rs"; pub(crate) fn create_snippets_folder(snippets_folder_path: &str) { // returns error if folder already exists, so we ignore the result diff --git a/framework/meta-lib/src/contract/meta_config.rs b/framework/meta-lib/src/contract/meta_config.rs index e26a4f4e16..b69a11a16a 100644 --- a/framework/meta-lib/src/contract/meta_config.rs +++ b/framework/meta-lib/src/contract/meta_config.rs @@ -13,7 +13,7 @@ use super::{ }; const OUTPUT_RELATIVE_PATH: &str = "../output"; -const SNIPPETS_RELATIVE_PATH: &str = "../interact-rs"; +const SNIPPETS_RELATIVE_PATH: &str = "../interactor"; const WASM_LIB_PATH: &str = "../wasm/src/lib.rs"; const WASM_NO_MANAGED_EI: &str = "wasm-no-managed-ei"; const WASM_NO_MANAGED_EI_LIB_PATH: &str = "../wasm-no-managed-ei/src/lib.rs";