multiversx_sc_scenario::imports

Function check_top_decode

Source
pub fn check_top_decode<T>(bytes: &[u8]) -> T
where T: TopDecode + PartialEq + Debug,
Expand description

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