junobuild-shared 0.8.0

Shared utilities for Juno.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::mgmt::types::cmc::CreateCanisterError;

impl std::fmt::Display for CreateCanisterError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Self::Refunded {
                refund_amount,
                create_error,
            } => write!(
                f,
                "The payment for the canister creation was refunded {refund_amount}: {create_error}"
            ),
        }
    }
}