From 589e5bf577a7557cc42e2ce1f546aa81a5d83e48 Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Tue, 4 Jan 2022 14:01:16 +0100 Subject: [PATCH] Add link to latest docs and fix wallet.broadcast example --- docs/tutorials/hello-world.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.49.0