multiversx_sc_snippets::imports

Function check_top_encode

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

Calls both the fast exit and the regular top-encode, compares that the outputs are equal, then returns the result. To be used in serialization tests.