Skip to main content

encode_default

Function encode_default 

Source
pub fn encode_default(descriptor: &TypeDescriptor) -> Result<AlignedValue>
Expand description

Produce the wire-format zero AlignedValue for any descriptor — the value {vm: null, type: ...} carries in IR pushdowns. Recurses through compound types so a default Either is (false, default ZswapCoinPublicKey, default ContractAddress), etc.