Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
feat(ethers-providers): expose pending tx_hash with a getter (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
meetmangukiya authored Feb 26, 2022
1 parent e7befca commit 133c32d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ethers-providers/src/pending_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ impl<'a, P: JsonRpcClient> PendingTransaction<'a, P> {
self.provider.clone()
}

/// Returns the transaction hash of the pending transaction
pub fn tx_hash(&self) -> TxHash {
self.tx_hash
}

/// Sets the number of confirmations for the pending transaction to resolve
/// to a receipt
#[must_use]
Expand Down

0 comments on commit 133c32d

Please sign in to comment.