Skip to main content

deploy_contract_from

Function deploy_contract_from 

Source
pub async fn deploy_contract_from<P: Provider>(
    provider: &P,
    bytecode: Bytes,
    label: &str,
    sender: Option<Address>,
) -> Result<Address>
Expand description

Deploy a contract, optionally fetching the sender’s nonce explicitly.

Pass sender when mixing provider-managed and manually-nonce’d transactions in one run: the cached nonce manager goes stale otherwise.