Skip to content

Commit 1f87367

Browse files
committed
Borrow instead of moving transaction when broadcasting
1 parent 59f795f commit 1f87367

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1559,8 +1559,8 @@ where
15591559

15601560
/// Broadcast a transaction to the network
15611561
#[maybe_async]
1562-
pub fn broadcast(&self, tx: Transaction) -> Result<Txid, Error> {
1563-
maybe_await!(self.client.broadcast(&tx))?;
1562+
pub fn broadcast(&self, tx: &Transaction) -> Result<Txid, Error> {
1563+
maybe_await!(self.client.broadcast(tx))?;
15641564

15651565
Ok(tx.txid())
15661566
}

0 commit comments

Comments
 (0)