Function deploy_code

Source
fn deploy_code(
    ccx: &mut CheatsCtxt<'_, '_, '_, '_>,
    executor: &mut dyn CheatcodesExecutor,
    path: &str,
    constructor_args: Option<&Bytes>,
    value: Option<U256>,
    salt: Option<U256>,
) -> Result
Expand description

Helper function to deploy contract from artifact code. Uses CREATE2 scheme if salt specified.