Skip to main content

await_successful_receipts

Function await_successful_receipts 

Source
pub async fn await_successful_receipts<N: Network>(
    txs: impl IntoIterator<Item = PendingTransactionBuilder<N>>,
) -> Result<Vec<N::ReceiptResponse>>
Expand description

Waits for the receipts of all transactions in order, failing if any of them reverted.

See PendingTransactionExt::successful_receipt.