Skip to content

Commit

Permalink
refactor: clean
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejVukosav committed Dec 20, 2024
1 parent 49ee39b commit 8a92b6a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
5 changes: 2 additions & 3 deletions crates/meroctl/src/cli/app/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ impl Report for InstallApplicationResponse {

impl InstallCommand {
pub async fn run(self, environment: &Environment) -> Result<()> {
drop(
let _ignored =
InstallCommand::install_app(self.path, self.hash, self.metadata, self.url, environment)
.await,
);
.await;

Ok(())
}
Expand Down
33 changes: 17 additions & 16 deletions crates/meroctl/src/cli/bootstrap/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,20 +128,19 @@ impl StartBootstrapCommand {

if demo_app {
println!(
"Application is available at https://calimero-network.github.io/core-app-template/"
"Connect to the node from https://calimero-network.github.io/core-app-template/"
);
println!("Open it in a separate window for each node.");
println!("Open application in separate windows to use it with 2 different nodes.");
println!("Application setup screen requires application id and node url.");
println!("Application id is {:?} ", application_id.to_string(),);

println!(
"Application id for node {:?} is {:?} and url is http://localhost:{}",
node1_environment.args.node_name,
application_id.to_string(),
node1_server_port
"Node {:?} url is http://localhost:{}",
node1_environment.args.node_name, node1_server_port
);
println!(
"Application id for node {:?} is {:?} and url is http://localhost:{}",
node1_environment.args.node_name,
application_id.to_string(),
node2_server_port
"Node {:?} url is http://localhost:{}",
node1_environment.args.node_name, node2_server_port
);
}
println!("************************************************");
Expand Down Expand Up @@ -293,12 +292,14 @@ impl StartBootstrapCommand {
let multiaddr = fetch_multiaddr(&config)?;
let client = Client::new();

let app_hash = Some(Hash::new("hash".as_bytes()));
let app_metadata = Some("".to_owned());
let url = Some("".to_owned());

let application_id =
InstallCommand::install_app(app_path, app_hash, app_metadata, url, environment).await?;
let application_id = InstallCommand::install_app(
app_path,
Some(Hash::new("hash".as_bytes())),
Some("".to_owned()),
Some("".to_owned()),
environment,
)
.await?;

let (context_id, public_key) = create_context(
environment,
Expand Down

0 comments on commit 8a92b6a

Please sign in to comment.