teasel 0.14.0

Lightweight CLI utilities for inspecting Miden files, local stores, and RPC endpoints
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use miden_client::asset::Asset;

pub(crate) fn format_asset(asset: &Asset) -> String {
    match asset {
        Asset::Fungible(f) => format!("fungible amount={} faucet={}", f.amount(), f.faucet_id()),
        Asset::NonFungible(nf) => {
            format!(
                "non-fungible faucet-prefix={} value={:?}",
                nf.faucet_id(),
                nf
            )
        }
    }
}