Skip to main content

compile_contract_object

Function compile_contract_object 

Source
pub fn compile_contract_object(
    raw: &Mapping,
) -> Result<Contract, DeclarativeError>
Expand description

Build a Contract from a { description?, frontmatter?, body? } mapping with no envelope, as an inline config contract is written. An mcVersion other than 2 and any other key are rejected.