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

feat(ethers-providers): expose pending tx_hash with a getter #968

Merged
merged 1 commit into from
Feb 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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