File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ pub fn enable_paint() {
211211pub 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}\n Block: {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`].
You can’t perform that action at this time.
0 commit comments