Skip to content

Commit

Permalink
chore: add clone_tx (#1791)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Dec 13, 2024
1 parent 4de90e9 commit c14c5be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/consensus/src/transaction/recovered.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ impl<T> Recovered<T> {
self.tx
}

/// Clone the inner transaction.
pub fn clone_tx(&self) -> T
where
T: Clone,
{
self.tx.clone()
}

/// Dissolve Self to its component
pub fn into_parts(self) -> (T, Address) {
(self.tx, self.signer)
Expand Down

0 comments on commit c14c5be

Please sign in to comment.