Skip to content

Commit 49e2290

Browse files
committed
fix(examples): use compute_txid() instead of txid
1 parent 97dcf4f commit 49e2290

File tree

3 files changed

+3
-3
lines changed
  • example-crates

3 files changed

+3
-3
lines changed

example-crates/wallet_electrum/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ fn main() -> Result<(), anyhow::Error> {
9494

9595
let tx = psbt.extract_tx()?;
9696
client.transaction_broadcast(&tx)?;
97-
println!("Tx broadcasted! Txid: {}", tx.txid());
97+
println!("Tx broadcasted! Txid: {}", tx.compute_txid());
9898

9999
Ok(())
100100
}

example-crates/wallet_esplora_async/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async fn main() -> Result<(), anyhow::Error> {
103103

104104
let tx = psbt.extract_tx()?;
105105
client.broadcast(&tx).await?;
106-
println!("Tx broadcasted! Txid: {}", tx.txid());
106+
println!("Tx broadcasted! Txid: {}", tx.compute_txid());
107107

108108
Ok(())
109109
}

example-crates/wallet_esplora_blocking/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ fn main() -> Result<(), anyhow::Error> {
8080

8181
let tx = psbt.extract_tx()?;
8282
client.broadcast(&tx)?;
83-
println!("Tx broadcasted! Txid: {}", tx.txid());
83+
println!("Tx broadcasted! Txid: {}", tx.compute_txid());
8484

8585
Ok(())
8686
}

0 commit comments

Comments
 (0)