Skip to main content

PendingTransactionExt

Trait PendingTransactionExt 

Source
pub trait PendingTransactionExt<N: Network> {
    // Required method
    fn successful_receipt(
        self,
    ) -> impl Future<Output = Result<N::ReceiptResponse>> + Send;
}
Expand description

Extension trait for transactions sent through an alloy provider.

Required Methods§

Source

fn successful_receipt( self, ) -> impl Future<Output = Result<N::ReceiptResponse>> + Send

Waits for the receipt of the transaction and returns it, failing if the transaction reverted.

Like [PendingTransactionBuilder::get_receipt], this waits until the transaction is included, so the block containing it must be produced, e.g. by NodeTestContext::advance_block or dev mining.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<N: Network> PendingTransactionExt<N> for PendingTransactionBuilder<N>

Source§

async fn successful_receipt(self) -> Result<N::ReceiptResponse>

Implementors§