Skip to main content

compile_solidity_contract_with_options

Function compile_solidity_contract_with_options 

Source
pub fn compile_solidity_contract_with_options(
    source_code: &str,
    file_name: &str,
    contract_name: &str,
    extra_sources: &[(&str, &str)],
    optimizer_runs: Option<u32>,
) -> Result<Vec<u8>>
Expand description

Compiles a Solidity contract with the given optimizer settings, returning the contract’s bytecode.