multiversx_sc_snippets::imports

Function dep_encode_to_vec_or_panic

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

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