Skip to content

Commit

Permalink
feat: only print address to stdout for deploy
Browse files Browse the repository at this point in the history
Aligns with the behavior of `declare` and makes it easier to script.
  • Loading branch information
xJonathanLEI committed Jul 8, 2023
1 parent 4f1912d commit 56b7838
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/subcommands/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl Deploy {
// TODO: add option for manually specifying fees
let estimated_fee = contract_deployment.estimate_fee().await?.overall_fee;
if self.estimate_only {
println!(
eprintln!(
"{} ETH",
format!(
"{}",
Expand Down Expand Up @@ -164,6 +164,11 @@ impl Deploy {
watch_tx(&provider, deployment_tx).await?;
}

eprintln!("Contract deployed:");

// Only the contract goes to stdout so this can be easily scripted
println!("{}", format!("{:#064x}", deployed_address).bright_yellow());

Ok(())
}
}

0 comments on commit 56b7838

Please sign in to comment.