Skip to main content

deploy_contract

Function deploy_contract 

Source
pub fn deploy_contract<FEN>(
    executor: &mut TracingExecutor<FEN>,
    evm_env: &EvmEnvFor<FEN>,
    request: TransactionRequestFor<FEN>,
    ext: Option<ChainFor<FEN>>,
) -> Result<Address, ErrReport>
where FEN: FoundryEvmNetwork,
Expand description

Executes the creation tx (converted from request) with evm_env and ext or extension state prepared for it, and returns the address of the contract it deployed.