diff --git a/example-crates/wallet_electrum/src/main.rs b/example-crates/wallet_electrum/src/main.rs index 36d560e3e7..63d7928c38 100644 --- a/example-crates/wallet_electrum/src/main.rs +++ b/example-crates/wallet_electrum/src/main.rs @@ -94,7 +94,7 @@ fn main() -> Result<(), anyhow::Error> { let tx = psbt.extract_tx()?; client.transaction_broadcast(&tx)?; - println!("Tx broadcasted! Txid: {}", tx.txid()); + println!("Tx broadcasted! Txid: {}", tx.compute_txid()); Ok(()) } diff --git a/example-crates/wallet_esplora_async/src/main.rs b/example-crates/wallet_esplora_async/src/main.rs index 9a9904a54d..38a56a8380 100644 --- a/example-crates/wallet_esplora_async/src/main.rs +++ b/example-crates/wallet_esplora_async/src/main.rs @@ -103,7 +103,7 @@ async fn main() -> Result<(), anyhow::Error> { let tx = psbt.extract_tx()?; client.broadcast(&tx).await?; - println!("Tx broadcasted! Txid: {}", tx.txid()); + println!("Tx broadcasted! Txid: {}", tx.compute_txid()); Ok(()) } diff --git a/example-crates/wallet_esplora_blocking/src/main.rs b/example-crates/wallet_esplora_blocking/src/main.rs index 5ecb712238..5e7448b655 100644 --- a/example-crates/wallet_esplora_blocking/src/main.rs +++ b/example-crates/wallet_esplora_blocking/src/main.rs @@ -80,7 +80,7 @@ fn main() -> Result<(), anyhow::Error> { let tx = psbt.extract_tx()?; client.broadcast(&tx)?; - println!("Tx broadcasted! Txid: {}", tx.txid()); + println!("Tx broadcasted! Txid: {}", tx.compute_txid()); Ok(()) }