Function multiversx_sc_snippets::imports::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.