Skip to content

Commit

Permalink
Update cli/src/deploy.rs
Browse files Browse the repository at this point in the history
Co-authored-by: shekohex <[email protected]>
  • Loading branch information
drewstone and shekohex authored Dec 10, 2024
1 parent 97addac commit d598343
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cli/src/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,12 @@ pub async fn deploy_to_tangle(
.await?;
#[cfg(test)]
let result = progress.wait_for_in_block_success().await?;
println!("Waiting for the transaction to be finalized...");
#[cfg(not(test))]
let result = progress.wait_for_finalized_success().await?;
println!("Transaction finalized...");
{
println!("Waiting for the transaction to be finalized...");
let result = progress.wait_for_finalized_success().await?;
println!("Transaction finalized...");
}
let event = result
.find::<TangleApi::services::events::BlueprintCreated>()
.flatten()
Expand Down

0 comments on commit d598343

Please sign in to comment.