From: Steve Myers Date: Tue, 4 Jan 2022 13:01:16 +0000 (+0100) Subject: Add link to latest docs and fix wallet.broadcast example X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.CodeLengthError.html?a=commitdiff_plain;h=589e5bf577a7557cc42e2ce1f546aa81a5d83e48;p=bitcoindevkit.org Add link to latest docs and fix wallet.broadcast example --- diff --git a/docs/tutorials/hello-world.md b/docs/tutorials/hello-world.md index ce86ffe5a6..3fc46d5b52 100644 --- a/docs/tutorials/hello-world.md +++ b/docs/tutorials/hello-world.md @@ -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