odra-cli 2.10.0

Odra CLI - Command Line Interface for Odra smart contracts.
1
2
3
4
5
6
7
8
9
10
11
12
//! The value conversions of [odra_schema::codec], with errors as the CLI reports them.

#[cfg(test)]
mod decoder_tests;

pub(crate) fn format_variant_list(variants: &[(String, u16)]) -> String {
    variants
        .iter()
        .map(|(n, _)| n.as_str())
        .collect::<Vec<_>>()
        .join("|")
}