Skip to content

Commit 56131bf

Browse files
authored
fix: use shell::println (foundry-rs#5603)
1 parent 3fec8c1 commit 56131bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cli/src/utils.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ pub fn enable_paint() {
211211
pub fn print_receipt(chain: Chain, receipt: &TransactionReceipt) {
212212
let gas_used = receipt.gas_used.unwrap_or_default();
213213
let gas_price = receipt.effective_gas_price.unwrap_or_default();
214-
println!(
214+
foundry_common::shell::println(format!(
215215
"\n##### {chain}\n{status}Hash: {tx_hash:?}{caddr}\nBlock: {bn}\n{gas}\n",
216216
status = if receipt.status.map_or(true, |s| s.is_zero()) {
217217
"❌ [Failed]"
@@ -236,7 +236,8 @@ pub fn print_receipt(chain: Chain, receipt: &TransactionReceipt) {
236236
gas_price.trim_end_matches('0').trim_end_matches('.')
237237
)
238238
},
239-
);
239+
))
240+
.expect("could not print receipt");
240241
}
241242

242243
/// Useful extensions to [`std::process::Command`].

0 commit comments

Comments
 (0)