fuels-types 0.25.0

Serializable type representation for working with the Fuel VM ABI.
Documentation
1
2
3
4
5
6
7
pub fn has_array_format(element: &str) -> bool {
    element.starts_with('[') && element.ends_with(']')
}

pub fn has_tuple_format(element: &str) -> bool {
    element.starts_with('(') && element.ends_with(')')
}