feat(ethers-providers): expose pending tx_hash with a getter (#968)
This commit is contained in:
parent
e7befcaaa0
commit
133c32d64a
|
@ -85,6 +85,11 @@ impl<'a, P: JsonRpcClient> PendingTransaction<'a, P> {
|
||||||
self.provider.clone()
|
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
|
/// Sets the number of confirmations for the pending transaction to resolve
|
||||||
/// to a receipt
|
/// to a receipt
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
|
Loading…
Reference in New Issue