Skip to content

Commit

Permalink
doc: add aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich committed Mar 21, 2024
1 parent f3562d5 commit 35c955a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/provider/src/heart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,19 @@ impl<'a, N: Network, T: Transport + Clone> PendingTransactionBuilder<'a, N, T> {
}

/// Returns the number of confirmations to wait for.
#[doc(alias = "confirmations")]
pub const fn reqd_confs(&self) -> u64 {
self.config.reqd_confs()
}

/// Sets the number of confirmations to wait for.
#[doc(alias = "set_confirmations")]
pub fn set_reqd_confs(&mut self, confirmations: u64) {
self.config.set_reqd_confs(confirmations);
}

/// Sets the number of confirmations to wait for.
#[doc(alias = "with_confirmations")]
pub const fn with_reqd_confs(mut self, confirmations: u64) -> Self {
self.config.reqd_confs = confirmations;
self
Expand Down Expand Up @@ -224,16 +227,20 @@ impl PendingTransactionConfig {
}

/// Returns the number of confirmations to wait for.
#[doc(alias = "confirmations")]
pub const fn reqd_confs(&self) -> u64 {
self.reqd_confs
}

/// Sets the number of confirmations to wait for.
#[doc(alias = "set_confirmations")]
pub fn set_reqd_confs(&mut self, confirmations: u64) {
self.reqd_confs = confirmations;
}

/// Sets the number of confirmations to wait for.

#[doc(alias = "with_confirmations")]
pub const fn with_reqd_confs(mut self, confirmations: u64) -> Self {
self.reqd_confs = confirmations;
self
Expand Down

0 comments on commit 35c955a

Please sign in to comment.