Skip to main content

encode_copperlist

Function encode_copperlist 

Source
pub fn encode_copperlist<P: CopperListTuple>(
    copperlist: &CopperList<P>,
) -> Result<Vec<u8>>
Expand description

Serializes the generated CopperList view selected by its application codec.

Generated codecs retain metadata for every slot while omitting payload bytes excluded from the selected view, so the result may be a partial CopperList.