Function check_managed_top_decode

Source
pub fn check_managed_top_decode<T: TopDecode + PartialEq + Debug>(
    api: TxContext,
    bytes: &[u8],
) -> T
Expand description

Uses the managed types api to test encoding. Can be used on any type, but managed types are especially relevant. Also works on types that have no un-managed decoding, by allowing DecodeError::UNSUPPORTED_OPERATION result.