Skip to content

Commit 4fbafe5

Browse files
committed
fix after merge changing borrow of tx in broadcast
1 parent 3c04f2b commit 4fbafe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/testutils/blockchain_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ macro_rules! bdk_blockchain_tests {
875875
let tx = psbt.extract_tx();
876876
let serialized_tx = bitcoin::consensus::encode::serialize(&tx);
877877
assert!(serialized_tx.windows(data.len()).any(|e| e==data), "cannot find op_return data in transaction");
878-
let sent_txid = wallet.broadcast(tx).unwrap();
878+
let sent_txid = wallet.broadcast(&tx).unwrap();
879879
test_client.generate(1, Some(node_addr));
880880
wallet.sync(noop_progress(), None).unwrap();
881881
assert_eq!(wallet.get_balance().unwrap(), 50_000 - details.fee.unwrap_or(0), "incorrect balance after send");

0 commit comments

Comments
 (0)