Skip to content

Commit

Permalink
Merge pull request #46 from rustaceanrob/owned-tx-09-09
Browse files Browse the repository at this point in the history
fix(client): used owned transaction
  • Loading branch information
rustaceanrob authored Sep 10, 2024
2 parents 81432a8 + 485a3cb commit 45ec5a5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,10 @@ where
}

/// Broadcast a [`Transaction`] with a [`TxBroadcastPolicy`] strategy.
pub async fn broadcast(
&self,
tx: &Transaction,
policy: TxBroadcastPolicy,
) -> Result<(), Error> {
pub async fn broadcast(&self, tx: Transaction, policy: TxBroadcastPolicy) -> Result<(), Error> {
self.sender
.broadcast_tx(TxBroadcast {
tx: tx.clone(),
tx,
broadcast_policy: policy,
})
.await
Expand Down

0 comments on commit 45ec5a5

Please sign in to comment.