diff --git a/contracts/examples/adder/interact/Cargo.toml b/contracts/examples/adder/interact/Cargo.toml index 8005539f97..92ddaf314a 100644 --- a/contracts/examples/adder/interact/Cargo.toml +++ b/contracts/examples/adder/interact/Cargo.toml @@ -10,7 +10,7 @@ name = "basic-interact" path = "src/basic_interact_main.rs" [lib] -path = "src/basic_interact_lib.rs" +path = "src/basic_interact.rs" [dependencies] clap = { version = "4.4.7", features = ["derive"] } diff --git a/contracts/examples/adder/interact/src/basic_interact.rs b/contracts/examples/adder/interact/src/basic_interact.rs index 668c8b7d77..a9769a82db 100644 --- a/contracts/examples/adder/interact/src/basic_interact.rs +++ b/contracts/examples/adder/interact/src/basic_interact.rs @@ -1,13 +1,10 @@ -// mod basic_interact_cli; -// mod basic_interact_config; -// mod basic_interact_state; +mod basic_interact_cli; +mod basic_interact_config; +mod basic_interact_state; -use core::str; - -use crate::basic_interact_cli; -use crate::basic_interact_config::Config; use crate::basic_interact_state::State; use adder::adder_proxy; +pub use basic_interact_config::Config; use clap::Parser; use multiversx_sc_snippets::imports::*; diff --git a/contracts/examples/adder/interact/src/basic_interact_lib.rs b/contracts/examples/adder/interact/src/basic_interact_lib.rs deleted file mode 100644 index 937d2ccaf2..0000000000 --- a/contracts/examples/adder/interact/src/basic_interact_lib.rs +++ /dev/null @@ -1,7 +0,0 @@ -pub mod basic_interact_cli; -pub mod basic_interact_config; -pub mod basic_interact_state; -pub mod basic_interact; - -pub use basic_interact::{AdderInteract, adder_cli}; -pub use basic_interact_config::Config; \ No newline at end of file diff --git a/contracts/examples/adder/interact/src/basic_interact_main.rs b/contracts/examples/adder/interact/src/basic_interact_main.rs index ee111351fe..352cdc8e70 100644 --- a/contracts/examples/adder/interact/src/basic_interact_main.rs +++ b/contracts/examples/adder/interact/src/basic_interact_main.rs @@ -3,4 +3,4 @@ extern crate basic_interact; #[tokio::main] pub async fn main() { basic_interact::adder_cli().await; -} \ No newline at end of file +}