Function unc_vm_runner::precompile_contract

source ยท
pub fn precompile_contract(
    code: &ContractCode,
    config: &Config,
    cache: Option<&dyn CompiledContractCache>
) -> Result<Result<ContractPrecompilatonResult, CompilationError>, CacheError>
Expand description

Precompiles contract for the current default VM, and stores result to the cache. Returns Ok(true) if compiled code was added to the cache, and Ok(false) if element is already in the cache, or if cache is None.