pub fn deploy_foundry_artifact(
cache: &mut EvmCache,
artifact_path: impl AsRef<Path>,
deployer: Address,
constructor_args: impl AsRef<[u8]>,
) -> DeployResult<Address>Expand description
Deploy a Foundry artifact into the forked EVM and return its temporary deployed address.
§Errors
Returns an error if the artifact cannot be loaded (see
load_foundry_creation_code) or if the deployment reverts or halts (see
FoundryArtifact::deploy).
§Panics
Must run on a multi-thread tokio runtime; the deployment panics on a current-thread runtime when the fork DB attempts a synchronous RPC fetch.