mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-09-11 13:56:58 +03:00
nit
This commit is contained in:
parent
96eeaf5aab
commit
b63c8e39b1
@ -183,10 +183,9 @@ fn handle_deploy<A: Aleo<Network = N, BaseField = N::Field>, N: Network>(
|
|||||||
// Generate the deployment transaction.
|
// Generate the deployment transaction.
|
||||||
let transaction = Transaction::from_deployment(owner, deployment, fee)?;
|
let transaction = Transaction::from_deployment(owner, deployment, fee)?;
|
||||||
|
|
||||||
println!("✅ Created deployment transaction for '{}'", name.bold());
|
|
||||||
|
|
||||||
// Determine if the transaction should be broadcast, stored, or displayed to the user.
|
// Determine if the transaction should be broadcast, stored, or displayed to the user.
|
||||||
if !command.fee_options.dry_run {
|
if !command.fee_options.dry_run {
|
||||||
|
println!("✅ Created deployment transaction for '{}'", name.bold());
|
||||||
handle_broadcast(
|
handle_broadcast(
|
||||||
&format!("{}/{}/transaction/broadcast", command.options.endpoint, command.options.network),
|
&format!("{}/{}/transaction/broadcast", command.options.endpoint, command.options.network),
|
||||||
transaction,
|
transaction,
|
||||||
@ -196,6 +195,8 @@ fn handle_deploy<A: Aleo<Network = N, BaseField = N::Field>, N: Network>(
|
|||||||
if index < all_paths.len() - 1 {
|
if index < all_paths.len() - 1 {
|
||||||
std::thread::sleep(std::time::Duration::from_secs(command.wait));
|
std::thread::sleep(std::time::Duration::from_secs(command.wait));
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
println!("✅ Successful dry run deployment for '{}'", name.bold());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -213,10 +213,9 @@ fn handle_execute<A: Aleo>(command: Execute, context: Context) -> Result<<Execut
|
|||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("✅ Created execution transaction for '{}'", program_id.to_string().bold());
|
|
||||||
|
|
||||||
// Broadcast the execution transaction.
|
// Broadcast the execution transaction.
|
||||||
if !command.fee_options.dry_run {
|
if !command.fee_options.dry_run {
|
||||||
|
println!("✅ Created execution transaction for '{}'", program_id.to_string().bold());
|
||||||
handle_broadcast(
|
handle_broadcast(
|
||||||
&format!(
|
&format!(
|
||||||
"{}/{}/transaction/broadcast",
|
"{}/{}/transaction/broadcast",
|
||||||
@ -225,6 +224,8 @@ fn handle_execute<A: Aleo>(command: Execute, context: Context) -> Result<<Execut
|
|||||||
transaction,
|
transaction,
|
||||||
&program_name,
|
&program_name,
|
||||||
)?;
|
)?;
|
||||||
|
} else {
|
||||||
|
println!("✅ Successful dry run execution for '{}'", program_id.to_string().bold());
|
||||||
}
|
}
|
||||||
|
|
||||||
return Ok(());
|
return Ok(());
|
||||||
|
Loading…
Reference in New Issue
Block a user