Skip to main content

factory_deploy

Function factory_deploy 

Source
pub async fn factory_deploy<P: Provider>(
    provider: &P,
    factory: Address,
    name: &str,
    creation_code: Bytes,
) -> Result<Address>
Expand description

Deploy creation_code under name through the factory (the provider’s wallet must be the factory owner). Returns the deployed address, which always equals predict_address(factory, name).