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 bfce2d4
Showing 1 changed file with 17 additions and 16 deletions.
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 bfce2d4

Please sign in to comment.