multiversx_sc_codec::test_util

Function dep_encode_to_vec_or_panic

Source
pub fn dep_encode_to_vec_or_panic<T: NestedEncode>(obj: &T) -> Vec<u8>
Expand description

Calls nested encode and panics if an encoding error occurs. Do not use in smart contracts!