multiversx_sc_codec::test_util

Function check_top_encode

Source
pub fn check_top_encode<T: TopEncode>(obj: &T) -> Vec<u8>
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.