Skip to main content

init_header

Function init_header 

Source
pub fn init_header<T: LayoutContract>(data: &mut [u8]) -> ProgramResult
Expand description

Initialize an account’s header from a layout contract type.

Convenience wrapper that pulls disc, version, and layout_id from the type and stamps schema_epoch = DEFAULT_SCHEMA_EPOCH.