fn print_transaction_status(
        result: Result<Option<VMStatusView>, Error>,
    ) -> Result<String, Error> {
        Self::pretty_print(result.map(|maybe_status| {
            maybe_status.map_or(String::from("Not yet executed"), |status| {
                status.to_string()
            })
        }))
    }
/// Show the transaction status in a friendly way
Show the transaction status in a friendly way
Show the transaction status in a friendly way
fn print_transaction_status(
        result: Result<Option<VMStatusView>, Error>,
    ) -> Result<String, Error> {
        Self::pretty_print(result.map(|maybe_status| {
            maybe_status.map_or(String::from("Not yet executed"), |status| {
                status.to_string()
            })
        }))
    }
fn print_transaction_status ( result : Result < Option < VMStatusView > , Error > , ) -> Result < String , Error > { Self :: pretty_print ( result . map ( | maybe_status | { maybe_status . map_or ( String :: from ( " " ) , | status | { status . to_string ( ) } ) } ) ) }
Show the transaction status in a friendly way
Show the transaction status in a friendly way
result
Result<Option<VMStatusView>, Error>
result
Result<Option<VMStatusView>, Error>