Skip to main content

wait_for_deployment

Function wait_for_deployment 

Source
async fn wait_for_deployment<N: Network>(
    pending: PendingTransactionBuilder<N>,
) -> Result<(Address, N::ReceiptResponse)>
Expand description

Waits for a deployment transaction’s receipt and returns the deployed address with it.

A load-balanced RPC can report the transaction as mined before the node that serves eth_getTransactionReceipt has its receipt, which alloy reports as a null response. The deployment went through, so keep polling for the receipt instead of failing it.