]> Untitled Git - bitcoindevkit.org/commitdiff
Add link to latest docs and fix wallet.broadcast example
authorSteve Myers <steve@notmandatory.org>
Tue, 4 Jan 2022 13:01:16 +0000 (14:01 +0100)
committerSteve Myers <steve@notmandatory.org>
Tue, 4 Jan 2022 13:08:41 +0000 (14:08 +0100)
docs/tutorials/hello-world.md

index ce86ffe5a68f06bf3e166afc108e4d30fd794fb1..3fc46d5b5271bd3179e2c30b55bbdd264dd64819 100644 (file)
@@ -3,7 +3,7 @@
 ## Introduction
 
 This article should serve as a "getting started" guide for developers who are considering integrating BDK in their projects: it tries to introduce the reader to the basic concepts behind the library and some of its
-modules and components that can be used to build a very simple functioning Bitcoin wallet. All the information written in this article are valid for the current `master` git branch and latest version `bdk = 0.12.0`.
+modules and components that can be used to build a very simple functioning Bitcoin wallet. All the information written in this article are valid for the latest [published version](https://docs.rs/bdk/latest/bdk/).
 
 ## Design Goals
 
@@ -171,7 +171,7 @@ And then broadcast it:
 // ...
 
 let raw_transaction = psbt.extract_tx();
-let txid = wallet.broadcast(raw_transaction)?;
+let txid = wallet.broadcast(&raw_transaction)?;
 println!(
     "Transaction sent! TXID: {txid}.\nExplorer URL: https://blockstream.info/testnet/tx/{txid}",
     txid = txid