From 485a3cbb3b899d7ebbc709b6adf53684cdeda659 Mon Sep 17 00:00:00 2001 From: Rob N Date: Mon, 9 Sep 2024 08:43:20 -1000 Subject: [PATCH] fix(client): used owned transaction --- src/lib.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index bec61a4..2610a71 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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